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.

Print preview issue

Thread ID:

Created:

Updated:

Platform:

Replies:

3546 Mar 27,2003 11:04 AM Mar 28,2003 11:24 AM Windows Forms 2
loading
Tags: GridControl
Sean Greer
Asked On March 27, 2003 11:04 AM

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 12:51 PM

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 11:24 AM

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

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.

;