Console App

Stimulsoft Reports.NET discussion
Post Reply
iomega55
Posts: 29
Joined: Sat Sep 23, 2006 1:37 am

Console App

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

Console App

Post 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.
Post Reply