Export to PDF

Stimulsoft Reports.NET discussion
Post Reply
Paul
Posts: 3
Joined: Tue Jun 13, 2006 10:13 am

Export to PDF

Post by Paul »


How to export report to PDF without dialog box? Any ideas?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Export to PDF

Post 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");
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Export to PDF

Post 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");
Post Reply