Report Generation
Posted: Fri Apr 16, 2010 9:56 pm
Hi,
I want to generate a password protected report on a button click.I have used the following code for this:
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);
But the code simply gets executed and nothing is shown.I cant see the generated report.I want that the user should be prompted for save location,name the report and finally save it in pdf format.
Pls let me know what i m missing?
Regards
Bharat
I want to generate a password protected report on a button click.I have used the following code for this:
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);
But the code simply gets executed and nothing is shown.I cant see the generated report.I want that the user should be prompted for save location,name the report and finally save it in pdf format.
Pls let me know what i m missing?
Regards
Bharat