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.

Grid printing problem - looses cols when maximized

Thread ID:

Created:

Updated:

Platform:

Replies:

26526 Mar 24,2005 08:31 AM Mar 30,2005 12:43 PM Windows Forms 5
loading
Tags: GridControl
Michael Mann
Asked On March 24, 2005 08:31 AM

Hi, 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 Michael

Administrator [Syncfusion]
Replied On March 24, 2005 09:19 AM

Are you using the latest public release, 3.0.1.0. 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\3.0.1.0\Windows\Grid.Windows\Samples\CellTypes. I checked a few of them with 3010 and they seemed to show all columns in PrintPreview.

Michael Mann
Replied On March 24, 2005 10:54 AM

Yes, I am using 3.0.1.0. 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... Any hints? Thanks

Administrator [Syncfusion]
Replied On 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.

Michael Mann
Replied On March 30, 2005 09:26 AM

Hi, 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 Michael Mann

Administrator [Syncfusion]
Replied On 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. http://www.syncfusion.com/Support/user/uploads/GC_OnPrintPage_1cd79d8c.zip

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.

;