Page 1 of 1

Console App

Posted: Sun Jul 08, 2007 12:10 am
by iomega55
Is it possible to generate PDF files from a console app using the Stimulsoft product?

I dont need a preview mode, I just need to generate the final file.


If it is, can you please share a sample

Thanks in advance.

Console App

Posted: Sun Jul 08, 2007 5:06 am
by Vital
You can use following code:

Code: Select all

StiReport report = new StiReport();
report.Load("myreport.mrt");
report.RegData("MyData", myDataSet);
report.Render(false);

report.ExportDocument(StiExportFormat.Pdf, "myPdfFile.pdf");
Thank you.