Sir
I want to genereate a report on a button click.The datasource is datatable.After the button click the report should get saved in PDF.Also the report should be password protected.
I am using VS2005.
Thanks
Bharat
Report Generation
Report Generation
Hello Udaipur,
Something like this:
Thank you.
Something like this:
Code: Select all
StiReport report = new StiReport();
report.Load("report.mrt");
report.RegData("MyTable", table);
StiPdfExportSettings settings = new StiPdfExportSettings();
settings.PasswordInputOwner = "1";
settings.PasswordInputUser = "2";
report.ExportDocument(StiExportFormat.Pdf, "file.pdf", settings);