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
6 Answers, 1 is accepted
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

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/.


Hi.. having same issue
EAST-US (D1: Shared)
Reporting v15.0.21.224
any ideas ? thx
Hi Jonathan,
In order to render reports, the engine uses the GDI+ library, which is currently available in Basic and higher App Service plans. Even these implementations have some GDI API restrictions that affect the image rendering. For that reason, I am afraid that Telerik reports cannot run in Free and Shared service plans.
For more information, please, refer to Preview reports using REST Service deployed in Azure article.
Regards,
Neli
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.