Completed
Last Updated: 15 Jan 2016 14:35 by ADMIN
ADMIN
Hristo
Created on: 13 Jan 2016 12:48
Category: PdfViewer
Type: Bug Report
1
FIX. RadPdfViewer - OutOfMemory exception when printing large files
Workaround: print the document page by page:
private void radButton1_Click(object sender, EventArgs e)
{
    RadPrintDocument d = new RadPrintDocument();
    d.PrinterSettings.PrintRange = PrintRange.CurrentPage;
    d.AssociatedObject = this.radPdfViewer1;
    for (int i = 0; i < this.radPdfViewer1.Document.Pages.Count; i++)
    {
        d.CurrentPage = i;
        d.Print();
    }
}
0 comments