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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Print preview issue

Thread ID:





3546 Mar 27,2003 04:04 PM UTC Mar 28,2003 04:24 PM UTC WinForms 2
Tags: GridControl
Sean Greer
Asked On March 27, 2003 04:04 PM UTC

Using Essential Suite v1.5.2.1 I have a GDBG that contains 10 static columns and 111 rows. When I use this code to show the print preview form I get very odd behavior: using(GridPrintDocument pd = new GridPrintDocument(m_sdgAccountGrid, true)) { using(PrintPreviewDialog dlg = new PrintPreviewDialog()) { dlg.Document = pd; dlg.ShowDialog(); } } The behavior I'm seeing is a great deal of redrawing and flicker, with the process consuming 100% of the CPU. It will settle down after fully redrawing the page 10-15 times, but scrolling to another page causes the repaint/flicker/CPU-consumption to repeat. Clients have reported that it hangs the process, but under the debugger I have not seen that. Are there any known issues with print preview or printing GDBGs? Regards, Sean

Sean Greer
Replied On March 27, 2003 05:51 PM UTC

Okay, I was seeing this behavior consistently between builds as I attempted to determine the cause. Then I added the option to allow the user to specify the PageSettings. When I ran my test and set the DefaultPageSettings on the GridPrintDocument, the problem went away. Fine, I suppose, but what's strange is that if I don't set the DefaultPageSettings (comment out the line) everything continues to work beautifully. Very odd.

Sean Greer
Replied On March 28, 2003 04:24 PM UTC

Please disregard the parent post. I can no longer reproduce the behavior.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon