Using Essential Suite v184.108.40.206
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;
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?
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.
SGSean GreerMarch 28, 2003 11:24 AM
Please disregard the parent post. I can no longer reproduce the behavior.