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 !!
Closing window after exporting pdf format !!
Hello.
What window do you want to close?
Thank you.
Why do you use export command twice?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.
What window do you want to close?
Thank you.
Closing window after exporting pdf format !!
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.
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.