Closing window after exporting pdf format !!

Stimulsoft Reports.WEB discussion
Post Reply
shilpa
Posts: 21
Joined: Thu Aug 11, 2011 8:03 am
Location: India

Closing window after exporting pdf format !!

Post 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.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Closing window after exporting pdf format !!

Post 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.
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Closing window after exporting pdf format !!

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