Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Render rdlc to pdf in azure website

I get the following error when trying to export a localreport .rdlc to PDF on azure.

Microsoft.Reporting.WebForms.LocalProcessingException: An error occurred during local report processing. ---> System.ArgumentException: Parameter is not valid. at System.Drawing.Graphics.GetHdc()

I know this is a known issue and is related to GDI see this Windows Azure forum

Anyway does anyone know anyway around this issue. I thought exporting to html or something but local reports only seem to give 3 options pdf, excel or word. I know I could use SQL Reporting service but need to use this as a local report.

like image 725
Eamon Towey Avatar asked Sep 10 '13 13:09

Eamon Towey


1 Answers

This is a very old question. This is functioning today, but not on the free/shared-hosting platform. You have to scale it up to Basic or Standard, then you are actually using your own Virtual Machine. It is lot more expensive but you can host more sites on that VM.

Switching is easy, just move the selector in Scale > Web Hosting Plan Mode

like image 87
roberth Avatar answered Oct 24 '22 12:10

roberth