OpenXML - Excel - How to close without saving

R

Richard

Hi,

I don't see in the documentation any way to close the Excel document without
saving the changes.

I mean, all the parts have a Save() method, and the SpreadSheet part has a
Close() method which also saves. How can the Excel document file be closed
without saving? Like in case there's an exception, and we need to cleanup and
close the file w/o saving.

Thanks in advance,

Richard
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top