Page 1 of 1

Closing window after exporting pdf format !!

Posted: Wed Nov 09, 2011 3:02 am
by shilpa
Hi,

I am using stimulsoft reports.
I am using the following code to show the reports in different formats-

ssoftRpt.ExportDocument(StiExportFormat.Pdf, strReportPath & Replace(FolderName, """", "'") & "_" & Replace(StartDate, "/", "-") & " _ " & Replace(EndDate, "/", "-") & ".pdf")
StiReportResponse.ResponseAsPdf(Me, ssoftRpt)

I have a window containing iframe.The iframe has url to a page which contains this code in the page load.
After the above code, I want to close the window.

Kindly suggest the solution.

Thanks
Shilpa.

Closing window after exporting pdf format !!

Posted: Thu Nov 10, 2011 8:55 am
by HighAley
Hello.
shilpa wrote:I am using stimulsoft reports.
I am using the following code to show the reports in different formats-

ssoftRpt.ExportDocument(StiExportFormat.Pdf, strReportPath & Replace(FolderName, """", "'") & "_" & Replace(StartDate, "/", "-") & " _ " & Replace(EndDate, "/", "-") & ".pdf")
StiReportResponse.ResponseAsPdf(Me, ssoftRpt)

I have a window containing iframe.The iframe has url to a page which contains this code in the page load.
After the above code, I want to close the window.

Kindly suggest the solution.
Why do you use export command twice?
What window do you want to close?

Thank you.

Closing window after exporting pdf format !!

Posted: Thu Nov 10, 2011 9:09 am
by Vladimir
Hello,

Unfortunately, this cannot be done for two reasons:
1. With Javascript you can close only a pop-up windows created with Javascript.
2. At the moment of transferring data stream (export file) it is not possible to execute Javascript at the same moment.

Thank you.