Page 1 of 2
Converting a report
Posted: Thu Sep 30, 2010 7:33 am
by amritpal
Hi,
I have a stiwebreport. I want to save that on computer as pdf(currently its showing through stiwebviewer). And also please can anybody tell how to convert stiwebreport into simple stireport.
Thanks,
Amritpal
Converting a report
Posted: Thu Sep 30, 2010 8:08 am
by Alex K.
Hello,
amritpal wrote:I have a stiwebreport. I want to save that on computer as pdf(currently its showing through stiwebviewer).
You can use StiReportResponse.ResponseAsPdf(Page, report, true);
amritpal wrote:And also please can anybody tell how to convert stiwebreport into simple stireport.
StiWebReport webReport;
StiReport report = webReport.GetReport();
Thank you.
Converting a report
Posted: Thu Sep 30, 2010 8:23 am
by amritpal
Thanks Aleksey.
But that is opening a popup window to customer. But I want to save that without telling to customer and after that want to mail to him the report.
Please tell me the solution for this.
Thanks in advance,
Amritpal
Converting a report
Posted: Thu Sep 30, 2010 8:28 am
by Alex K.
Hello,
You can use the following method:
Code: Select all
MemoryStream stream = new MemoryStream();
StiPdfExportSettings settings = new StiPdfExportSettings();
StiPdfExportService export = new StiPdfExportService();
export.ExportPdf(report, stream, settings);
Then this Memory Stream can be sent by e-mail.
Thank you.
Converting a report
Posted: Thu Sep 30, 2010 8:30 am
by amritpal
Hi,
I already did that, but it gives the following error:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Converting a report
Posted: Thu Sep 30, 2010 8:32 am
by Alex K.
Hello,
We need some time for check this issue.
Thank you.
Converting a report
Posted: Thu Sep 30, 2010 8:33 am
by amritpal
Hi,
Ok. But please do answer to this query.
Thanks
Converting a report
Posted: Fri Oct 01, 2010 2:00 am
by Alex K.
Hello,
We couldn't reproduce this bug.
Please send us your .MRT file with database for analysis on
support@stimulsoft.com. Or can you please send us a simple test application, which reproduce the issue?
Thank you.
Converting a report
Posted: Sun Oct 10, 2010 10:56 pm
by amritpal
HI Team,
Thanks for your contribution. I solved the issue myself.
Thanks.
Amritpal
Converting a report
Posted: Mon Oct 11, 2010 12:53 am
by Andrew
Hello,
Ok! Let us know if you have some additional questions.
Thank you.