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
AD
Administrator
Syncfusion Team
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
BJ
Boris Jansen
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?
BJ
Boris Jansen
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
AD
Administrator
Syncfusion Team
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.
BJ
Boris Jansen
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.
???
AD
Administrator
Syncfusion Team
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?