Errors running on Azure - can't print - Not using FREE service plan

2 posts, 0 answers
  1. Greg
    Greg avatar
    1 posts
    Member since:
    Nov 2013

    Posted 28 Aug 2018 Link to this post


    I'm trying to print on Azure.. get the following error. I've read that you can't use a FREE plan cause it doesn't support GDI+.

    I have a standard plan - paying.. but I can't print from the site (on Azure). Works great locally.

    Any ideas?  thx


    System.ArgumentException: Parameter is not valid.   at System.Drawing.Graphics.GetHdc()   at Telerik.Reporting.Pdf.PdfContext..ctor(String ownerPassword, String userPassword) in c:\temp\reporting\RBuild-2657\Reporting_Build\Source\Code\Telerik.Reporting.Pdf\PdfContext.cs:line 36   at Telerik.Reporting.Pdf.PdfDocument.InitCompleted(Stream stream) in c:\temp\reporting\RBuild-2657\Reporting_Build\Source\Code\Telerik.Reporting.Pdf\PdfDocument.cs:line 332   at Telerik.Reporting.ImageRendering.DocumentPdf.CreateDocument(PdfRenderingContext pdfContext) in c:\temp\reporting\RBuild-2657\Reporting_Build\Source\Code\Telerik.Reporting.ImageRendering\DocumentPdf.cs:line 68

  2. Todor
    Todor avatar
    520 posts

    Posted 31 Aug 2018 Link to this post

    Hi Greg,

    The exception is thrown by System.Drawing.Graphics.GetHdc(), which suggests that it is related to GDI restriction.
    The issue is known and occurs only in Free and Shared plans according to ReportViewer Control on Azure Web Sites - Export to PDF not working MSDN thread.

    The Printing functionality and PDF export work correctly in our Html5 demo hosted on Azure - please, test on

    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top