Не работает экспорт в PDF. Версия Reports.Web 2015.1.20
Код: Выделить всё
[Test]
public void TestChartToPdf()
{
var r = new StiReport();
r.Load("d:/chart1.mrt");
r.Render(false);
using (var s = new FileStream("d:/pdf2.pdf", FileMode.Create))
{
r.ExportDocument(StiExportFormat.Pdf, s, null);
}
}
Отчет прилагаюSystem.NullReferenceException : Object reference not set to an instance of an object.
at Stimulsoft.Report.Export.StiPdfExportService.RenderChart(StiPdfData pp, Boolean assemble, Int32 pageNumber)
at Stimulsoft.Report.Export.StiPdfExportService.ExportPdf1(StiReport report, Stream stream, StiPdfExportSettings settings)
at Stimulsoft.Report.Export.StiPdfExportService.ExportPdf(StiReport report, Stream stream, StiPdfExportSettings settings)
at Stimulsoft.Report.StiReport.ExportDocument(StiExportFormat exportFormat, StiExportService exportService, Stream stream, StiExportSettings settings)
at Stimulsoft.Report.StiReport.ExportDocument(StiExportFormat exportFormat, Stream stream, StiExportSettings settings)
at StimulsoftTest.TestChartToPdf() in StimulsoftTest.cs: line 189