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

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

    Posted 28 Aug 2018 Link to this post

    Hi..

    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
    Admin
    Todor avatar
    600 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 https://telerikreporting.azurewebsites.net/.

    Regards,
    Todor
    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
  3. Billy
    Billy avatar
    3 posts
    Member since:
    May 2020

    Posted 29 Sep 2020 in reply to Todor Link to this post

    We are not using shared/free but still experiencing same error
  4. Todor
    Admin
    Todor avatar
    600 posts

    Posted 02 Oct 2020 Link to this post

    Hi Billy,

    What Azure plan do you use? Does it have a fully functional GDI?

    Which Reporting version do you use?

    Regards,
    Todor
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

  5. Billy
    Billy avatar
    3 posts
    Member since:
    May 2020

    Posted 04 Nov 2020 in reply to Todor Link to this post

    it was bit version that was the issue all fixed now
Back to Top