We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Printing with Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

9792 Jan 12,2004 05:42 AM Jan 16,2004 04:11 AM Windows Forms 6
loading
Tags: GridControl
Boris Jansen
Asked On January 12, 2004 05:42 AM

Hello! I try to print the hole table with your ''GridPrintDocument'' class. code: ----------------------------------------------- Dim pd As PrintGrid pd = New PrintGrid(Me.BG, True) pd.DefaultPageSettings.Landscape = True Dim dlg As PrintPreviewDialog dlg = New PrintPreviewDialog dlg.ShowInTaskbar = True FormStartPosition.CenterScreen dlg.UseAntiAlias = True dlg.Document = pd dlg.ShowDialog() ----------------------------------------------- the used grid has 756 rows or more... and 3 cols or more... the output is compressed to 1 page containing all rows and columns and thereby unreadable. is there a solution to this problem? thanks a lot Boris

Administrator [Syncfusion]
Replied On January 12, 2004 06:15 AM

If you replace your PrintGrid with GridPrintDocument, do things work? Here are some KB''s on printing. http://www.syncfusion.com/Support/kb.aspx?cNode=1009&pNodes=1001

Boris Jansen
Replied On January 12, 2004 07:59 AM

OK i have a look at this! but what is wrong with this code? Grid.Rows.InsertRange(Grid.RowCount + 1, 6) After this the Grid.rowcount is = 1 any idea?

Boris Jansen
Replied On January 12, 2004 08:21 AM

dim I as integer PositionsGrid.RowCount = MyAuftrag.PosCount --> Now the Rowcount is 6 <-- for i = 1 to MyAuftrag.PosCount ColIndex = 1 PositionsGrid(I, ColIndex).Text = PositionsGrid.RowCount --> Now the RowCount is 1 <-- --> I don`7 understand this <-- PositionsGrid(I, ColIndex).HorizontalAlignment = GridHorizontalAlignment.Right ColIndex += 1 PositionsGrid(I, ColIndex).Text = PositionsGrid.RowCount PositionsGrid(I, ColIndex).HorizontalAlignment = GridHorizontalAlignment.Right next

Administrator [Syncfusion]
Replied On January 12, 2004 11:51 AM

After changing the rowcount with inserts, try calling grid.ResetVolatileData to see if that takes care of this problem.

Boris Jansen
Replied On January 15, 2004 10:51 PM

quote: If you replace your PrintGrid with GridPrintDocument, do things work? The PrintGrid and GridPrintDocument are the same document. its only another name. i take your original GridPrintDocument but it doesnt`t work! the hole information are compressed at one page. u can`t read any information on the printed page. i think this print must have 4 or 5 pages. ???

Administrator [Syncfusion]
Replied On January 16, 2004 04:11 AM

We ship samples that have printPreview implemented. Take a look at any of the 12 samples in Syncfusion\Essential Suite\Grid\Samples\CellTypes. Do these work for you? The GridPad sample find in the samples\QuickStart folder has printing implemented as well. Does this work for you?

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;