Hi,
my product name is NetAdvantage Ultimate 2013 Vol. 1I have a similar problem than http://es.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
Hi jfpuche,
Thank you for posting in our forum.
I would suggest you to try adding the following assemblies to the project:
InfragisticsWPF4.Reports.Controls.Editors.XamColorPicker.v12.2.dll
InfragisticsWPF4.Reports.Controls.Editors.XamSlider.v12.2.dll
InfragisticsWPF4.Reports.Controls.Menus.XamDataTree.v12.2.dll
InfragisticsWPF4.Reports.Controls.Menus.XamMenu.v12.2.dll
Also, make sure you are ignoring correctly the route to the service:
routes.Ignore(“ReportService1.svc/{*pathinfo}”);
Let me know if this helps.
I've the same errors with the new assemblies and the route ignoring.
I've also tried to export by
var fichier = "ReportExport_" + DateTime.Now.ToShortDateString() + ".pdf";var reportUri = new Uri("avitax-total;component/Ventes.igr", UriKind.Relative);using (var exporter = ServerExporterFactory.CreateExporter(reportUri)){var memoryStream = new MemoryStream();var data = new DataSourceValue { Name = "Sales", Value = model.SalesList };
IEnumerable<DataSourceValue> dataList = new List<DataSourceValue>() { data };exporter.DataSources = dataList;exporter.Export(memoryStream, "PDF");SendStreamToResponse(memoryStream, fichier, "application/pdf");memoryStream.Close();}
And I have the following error message
[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) +138 Infragistics.Reports.Engine.ReportExporter.ExportInternal(IReportItemVisitor reportItemVisitor, IDocument document, Stream targetStream, ExportCallback callback, IReportItemRendererFactory factory, ICancelationProvider cancelationProvider) +201
Is it possible for you to provide a small running project demonstrating this error, so I can investigate it further?
Thank you.
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.
Hi All,
Thank you for your feedback and outlining the possible cause of the issue. we are currently working on reproducing this at our end in order to determine its cause.
I will keep you posted of any developments regarding this matter.
Did this issue ever get resolved? As we are seeing similar behavior also using version 13.2.
Has it been addressed in later versions of Infragistics?
Thanks
Hello,
Thank you for your patience.
After further investigation, I have asked our engineers to examine the scenario further. In order to ensure that the matter receives attention, I have logged it in our internal system with an ID of 145297. The next step would be for a developer to review my findings and offer more feedback and suggestions.
Please do not hesitate to contact us with any questions or updates in the meantime.
Hello All,
Thank you for your replies
We are looking into this matter with high priority and will keep you posted of any available information.
Sorry to nag but this is showstopper issue for my client. The reports aren't much good if we can't get them "out". Is there a fix in works or is there someone who could help me with a workaround?