Print Page | Close Window

Successful Export to Excel?

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2022
Forum Name: Data Connectivity
Forum Discription: How to connect to data sources and export reports
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=1039
Printed Date: 05 Apr 2025 at 5:37am


Topic: Successful Export to Excel?
Posted By: cjmorris1201
Subject: Successful Export to Excel?
Date Posted: 20 Jul 2007 at 9:38am

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

 



Replies:
Posted By: BrianBischof
Date Posted: 20 Jul 2007 at 11:20am
That's a good question, but I haven't seen any functionality that does this. 

-------------
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>



Print Page | Close Window