Is there an another way to fit the grid bevor printing?
dlg.Document = pd
dlg.AllowSelection = True
dlg.AllowPrintToFile = True
dlg.AllowSomePages = True
dlg.Document.DocumentName = Trim(Documentname)
Dim result As DialogResult = dlg.ShowDialog()
If result = DialogResult.OK Then
when i print the grid the Col A - G will printed
on the first page and h - j will be printed on the second page. is there any property, to fit (compress) all columns at one page?
i don`t want to use your printtofitdocument?
i need a property ;-)
thanks a lot
ADAdministrator Syncfusion Team January 29, 2004 03:04 AM
There is no property setting to do this.
If you do not want to use the PrintToFit technique that sizes a bitmap, then you will have to do something else.
You can try zooming the grid during printing. Again, there is no property to do this yet, but you can do it from code. You can try to implement zooming on your own. Here is a sample that just zooms a grid. You would have to implement this behavior while teh grid is being printed, maybe checking teh grid.PrintMode property to decide when to zoom things. Now depending upon exactly what you are doing in your grid, you may have to adjust other items. It would take some coding to implement this.
BJBoris JansenJanuary 29, 2004 04:59 AM
the problem is, that the printtofit class compressed all data at one page!