Page 1 of 1

Export to PDF

Posted: Tue Jun 13, 2006 2:50 pm
by Paul

How to export report to PDF without dialog box? Any ideas?

Export to PDF

Posted: Wed Jun 14, 2006 4:58 am
by Edward
For exporting report to pdf file without using dialog box do the following:

StiReport report = new StiReport();
report.Load("report.mrt");
report.Render();

StiPdfExportService pdfExport = new StiPdfExportService();
pdfExport.ExportPdf(report, "document.pdf");

Export to PDF

Posted: Fri Jun 16, 2006 7:51 am
by Vital
Starting with version 1.60 you can use this code:

Code: Select all

StiReport report = new StiReport();
report.Load("report.mrt");
report.Render();

report.Export(StiExportFormat.Pdf, "document.pdf");