|
-
Jan 17th, 2001, 09:19 AM
#1
Thread Starter
Member
Hi everyone,
I have VSFlexGrid on my application that shows data from a database. I have a function to save the content of the grid into Excel format.
Everything works fine, except everytime I want to export, it tells me that RESUME.XLW already exists, and if I want to rewrite it. I have to say Yes to make the exporting process successful. Now I realize that RESUME.XLW is probably the temporary file for the data before it's saved in excel format.
Now the question is, how do I make that question not appear? The one whether I want to rewrite RESUME.XLW. I want that file to be deleted automatically, or at least not ask and automatically rewrite it. Any ideas? Thanks in advance!
-
Jan 17th, 2001, 09:31 AM
#2
Excel.application.displayalerts = false
Excel won't prompt you for any changes, but will just do as it's told (if only women were more like that! )
You need a referencce to the Excel library as you're probably aware - Project Menu > References > Microsoft Excel 9.0 Library etc.
-
Jan 17th, 2001, 09:36 AM
#3
Thread Starter
Member
Perfect
Alex,
Thanks a lot for the tip. It does exactly what I wanted. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|