I hava grid and want to print the contents. When the form which contains the grid is in the original state - meaning the initial size - everything is printed fine. When maximizing the form, the last column is missing in the PrintPreviewDialog. Any hints?
Thanks in advance
ADAdministrator Syncfusion Team March 24, 2005 09:19 AM
Are you using the latest public release, 22.214.171.124. It has several printing problems fixed.
Can you see this problem in any of our samples? I think all these samples have a PrintPreview button in them. \Syncfusion\Essential Suite\126.96.36.199\Windows\Grid.Windows\Samples\CellTypes. I checked a few of them with 3010 and they seemed to show all columns in PrintPreview.
MMMichael MannMarch 24, 2005 10:54 AM
Yes, I am using 188.8.131.52. I tried some of the samples all of them are fine.
Is there a way to explicitly set the range of the printed document?
Thought of deriving the GridPrintDocument, but couldn''t find anything...
ADAdministrator Syncfusion Team March 24, 2005 12:12 PM
If by setting the range, you mean setting the start and stop columns and rows for each page, currently there is not a simple way to do this.
These settings are computed in the GridPrintDocument.OnBeginPrint method. So, to accomplish this now, you would have to derive GridPrintDocument and override OnBeginPrint. If you have our source code, you can just copy the implementation code from our library up into your override, and make what ever adjustments you want.
MMMichael MannMarch 30, 2005 09:26 AM
I derived it, but I couldn''t find a way to set the printing area. Apart from that, I watched the values in the original grid, and they were fine - without printing the last column.
Can you give me a hint, how to set the area / range explicitly in the derived document class?
Thanks in advance
ADAdministrator Syncfusion Team March 30, 2005 12:43 PM
Here is a sample. It just swaps out the start/end row and cols for each page in an a override of OnPrintPage.