We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Save excel file

Thread ID:

Created:

Updated:

Platform:

Replies:

69613 Nov 5,2007 04:27 PM UTC Nov 6,2007 02:45 PM UTC WinForms 2
loading
Tags: XlsIO
Wen Jiang
Asked On November 5, 2007 04:27 PM UTC

Syncfusion 4.4.

I have a problem to re-save data in my grirdGroupingControl(grid) into an opening an excel file. For example, if I have book1.xls open, then I save the data from gcc to overwrite book1.xls, my application will close down.

Attached is my code to save data to an excel file from grid. Please help me with this.



saveAsExcel.zip

Jeba S [Syncfusion]
Replied On November 6, 2007 11:43 AM UTC

Hi Jane,

Thank you for posting query to us.

Generally we cannot resave the data of any grid into an open excel file. Before overwrite the changes in the grid to the same Excel file, you should close the Excel file. And then save the changes.

Kindly let us know if you need any further assistance.

Best Regards,
Jeba.


Wen Jiang
Replied On November 6, 2007 02:45 PM UTC

Jeba,

Thank you for your reply. I knew there is no problem if I close the Excel file before I save. If there is no better solution, I would like to have the code to check if the Excel file is open or not, if yes, I would pop up a message to remind the user to close the Excel file. Can you please tell me how to check if an Excel file is opened? Thanks a lot!

Jane

>Hi Jane,

Thank you for posting query to us.

Generally we cannot resave the data of any grid into an open excel file. Before overwrite the changes in the grid to the same Excel file, you should close the Excel file. And then save the changes.

Kindly let us know if you need any further assistance.

Best Regards,
Jeba.



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;