Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a way to determine if export succeeded/finished successfully?

Status
Not open for further replies.

cjmorris1201

Programmer
Jan 15, 2007
2
US
Hello,

Is there a return code to evaluate or another means of determining if an export to Excel (or any other export) succeeded or not?

I help develop a web application that exports reports to excel or pdf depending on what the end user selects from a “print option” asp page. The "print option" asp page opens the pdf within itself, but the exported excel file is opened as an attachment (this is on purpose). If the excel export option is chosen, I wish to close the print option asp page after the excel file is created.

Simply calling window.close() after the user selects the export option closes the asp page prematurely and abends the export process. I could use the setTimeout but the amount of time to generate the report varies depending on the amount of data being retrieved.

Any suggestions would be appreciated.

Best Regards,

Carl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top