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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Printing with Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

9792 Jan 12,2004 10:42 AM UTC Jan 16,2004 09:11 AM UTC WinForms 6
loading
Tags: GridControl
Boris Jansen
Asked On January 12, 2004 10:42 AM UTC

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 11:15 AM UTC

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 12:59 PM UTC

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 01:21 PM UTC

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 04:51 PM UTC

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

Boris Jansen
Replied On January 16, 2004 03:51 AM UTC

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 09:11 AM UTC

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.

Warning Icon 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.Close Icon

;