Problem exporting to PDF directly
Posted: Wed May 30, 2018 1:44 pm
Hello,
I'm quite new to Stimulsoft and I have an issue.
I followed your sample to export the report to pdf file.
In this way it is asking for choosing the directory where to save the pdf file.
Is there another way to directly save the pdf in a fixed directory, without asking the user to choose it?
kind regards,
Matteo
I'm quite new to Stimulsoft and I have an issue.
I followed your sample to export the report to pdf file.
Code: Select all
report.render();
var pdfData = report.exportDocument(Stimulsoft.Report.StiExportFormat.Pdf);
// Get report file name
var fileName = String.isNullOrEmpty(report.reportAlias) ? report.reportName : report.reportAlias;
// Save data to file
Object.saveAs(pdfData, fileName + ".pdf", "application/pdf");
Is there another way to directly save the pdf in a fixed directory, without asking the user to choose it?
kind regards,
Matteo