I have an Excel 2007 spreadsheet that I edit with the OpenXML SDK 2.
I remove some rows etc.
I would like to know how to save that Spreadsheetdocument to another filename.
C# – openxml spreadsheat save-as
cexcelopenxml-sdk
Related Topic
- C# – LINQ’s Distinct() on a particular property
- C# – Proper use of the IDisposable interface
- C# – How to update the GUI from another thread
- C# – Call one constructor from another
- C# – Try-catch speeding up the code
- Excel – How to avoid using Select in Excel VBA
- Scala: list.flatten: no implicit argument matching parameter type (Any) = > Iterable[Any] was found
Best Answer
To my knowledge there is no built in way to change the filename, but since one way to edit the file is to use streams you can easily give the name of the file you want when writing out the contents of a stream:
There are other ways to change the name as well, like when returning the file to a user in an ASP.NET MVC web application, but it depends on what you are trying to do.