View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Richard Richard is offline
external usenet poster
 
Posts: 709
Default OpenXML - Excel - How to close without saving

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