The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
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 04:24 PM UTC
Please disregard the parent post. I can no longer reproduce the behavior.