This is a migrated thread and some comments may be shown as answers.

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

6 Answers 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 28 Aug 2018, 11:41 AM

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

Sort by
0
Todor
Telerik team
answered on 31 Aug 2018, 09:50 AM
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
0
Billy
Top achievements
Rank 1
answered on 29 Sep 2020, 07:41 AM
We are not using shared/free but still experiencing same error
0
Todor
Telerik team
answered on 02 Oct 2020, 07:10 AM

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

0
Billy
Top achievements
Rank 1
answered on 04 Nov 2020, 08:16 AM
it was bit version that was the issue all fixed now
0
Jonathan
Top achievements
Rank 1
Veteran
answered on 09 Mar 2021, 08:19 PM

Hi.. having same issue

EAST-US (D1: Shared)

Reporting v15.0.21.224

 

any ideas ?  thx

0
Neli
Telerik team
answered on 11 Mar 2021, 03:18 PM

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.

Tags
General Discussions
Asked by
Greg
Top achievements
Rank 1
Answers by
Todor
Telerik team
Billy
Top achievements
Rank 1
Jonathan
Top achievements
Rank 1
Veteran
Neli
Telerik team
Share this question
or