Any Idea why is happening this?
The code I am using is the next one:
Code: Select all
var stream = new System.IO.MemoryStream();
var report = new StiReport();
report.Load(Server.MapPath("~/Formats/PedidoV2.mrt"));
report.Render();
var es = new StiPdfExportSettings();
report.ExportDocument(StiExportFormat.Pdf, stream, es);
using (var fileStream = new FileStream(Server.MapPath("~/report.pdf"), FileMode.Create, FileAccess.Write))
{
stream.WriteTo(fileStream);
}
I attach the the sample project I am using, with the report inside.
Thanks