How do I save a Workbook without erasing it?

The subject says it all. I want to get a stream containing an Excel file with the current contents of a Workbook, but then continue to operate on the workbook and save it again in the future. As far as I can tell, both Save and SaveToStream clear out the workbook after saving it.



Yes, the workbook’s data would be clear after calling its Save / SaveToStream method, we will look into the feature for your need soon.

Thanks for your considerations.

Hi Howard,

Thank you for considering Aspose.

Please try the attached latest version of Aspose.Cells. Now, data will not be remove after calling Workbook.Save() method. If you want to remove all the workbook data, you need to call Workbook.Initialize() method now.

Thank You & Best Regards,