Export to PDF
Export to PDF
How to export report to PDF without dialog box? Any ideas?
Export to PDF
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");
StiReport report = new StiReport();
report.Load("report.mrt");
report.Render();
StiPdfExportService pdfExport = new StiPdfExportService();
pdfExport.ExportPdf(report, "document.pdf");
Export to PDF
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");