Hi,
my product name is NetAdvantage Ultimate 2013 Vol. 1I have a similar problem than http://www.infragistics.com/community/forums/t/79908.aspx
By using HTML5 Report Viewer on azure website (MVC4), report exporting is not working,on my development environment it works fine but once deployed to Azure it doesn't (the report viewer work correctly but not the export buttons).
The error message is :An error occurred while exporting the report. Object reference not set to an instance of an object. In web.config I use the following parameters :
<system.webServer><validation validateIntegratedModeConfiguration="false" /><handlers><add name="IgReportingResourcesHandler" verb="*" path="*.igrResource" type="Infragistics.Reports.Server.ResourcesHandler, InfragisticsWPF4.Reports.Server.v13.1" /></handlers><modules><add name="ReportProcessorServiceModule" type="Infragistics.Reports.Server.ReportProcessorServiceModule, InfragisticsWPF4.Reports.Server.v13.1" /></modules></system.webServer>
and in global.asax.cs
routes.Ignore("{*allReportingResources}", new { allReportingResources = @".*\.igrResource(/.*)?" });
I use the following code on the viewpage :
<div id="report"></div>
<script type="text/javascript">$.ig.loader({scriptPath: "/scripts/Infragistic/scripts/",cssPath: "/scripts/Infragistic/css/",resources: "igReportViewer"});
$.ig.loader(function () {$("#report").igReportViewer({height: 600,locale: 'fr',pageFit: "fitToPage",renderSettings: {definitionUri: "avitax-total;component/Ventes.igr",
serviceEndpointUri: "/ReportService.svc/ajaxAddress/"}});});</script>
The dll deployed to azure website bin folder : Infragistics.Web.Mvc.Documents.Reports, Version=13.1.20131.2103,Infragistics45.WebUI.Documents.Reports.v13.1, Version=13.1.20131.2045,InfragisticsWPF4.Controls.Reports.v13.1InfragisticsWPF4.Models.Data.v13.1InfragisticsWPF4.Models.Presentation.v13.1InfragisticsWPF4.Reporting.v13.1, Version=13.1.20131.2073,InfragisticsWPF4.Reports.Client.v13.1InfragisticsWPF4.Reports.Controls.Charts.XamDataChart.v13.1InfragisticsWPF4.Reports.Controls.Common.v13.1InfragisticsWPF4.Reports.Controls.DataVisualization.v13.1InfragisticsWPF4.Reports.Excel.v13.1InfragisticsWPF4.Reports.Pdf.v13.1InfragisticsWPF4.Reports.Server.v13.1InfragisticsWPF4.Reports.v13.1InfragisticsWPF4.v13.1
May be some infragistics reference is missing on my deployment ?Thanks for your help, Regards
do you have any news about this problem ?
For the moment the only "fix" we find is to install a webservice to perform the export from an azure virtual machine but it could not be a long term solution.
I can confirm also that my deployed Azure site will properly export a blank report. Specifically, if I render a report based on a query that then returned no results, if the report is then a completely blank page (no report title, footer, etc. anything) the report will export but if there is any text in the viewer, then the report will not export.
It sounds like you have found the culprit (system fonts access) for the Azure deployment issue.
Is there anyone from Infragistics that can confirm or deny this a a viable cause? Any possibility for a patch or other fix if this is indeed the issue?
another test to try to solve this issue :
I've tried with removing all the fonts reference in the report definition but got the same error.
I've also tried to remove all text in the report definition and the export work correctly on azure plateform (but with an empty report).
I'm very surprised than report export seems not supported on this environnement.
according to
[NullReferenceException: Object reference not set to an instance of an object.] Infragistics.Documents.Reports.TTF.Font.Subset(Boolean regular) +56 Infragistics.Documents.Reports.PDF.Font.EmbedData() +46 Infragistics.Documents.Reports.PDF.PdfDocument.Generate(Stream stream) +142 Infragistics.Documents.Reports.Report.Report.Publish(Stream stream, FileFormat format) +2580 Infragistics.Reports.Pdf.PdfDocument.Export(Stream targetStream)
error
it's probably an issue about fonts, in a azure website environnement we don't have access to %SYSTEMROOT%\Fonts folder
I would be willing to bet that we are looking for the same solution. My thread is here. Did you happen to notice if the icons on the Export buttons are not showing? You can see a screenshot example in that referenced thread.