Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Closed Unassigned: SaveAs changes existing format in excel sheets [9502]

$
0
0
I have already excel template which has already inserted with some formulas and formats to the cells.

This excel will open using application and saves necessary changes to sheets. and save the excel using saveas method.
wb = new XLWorkbook(FileName);
------
----
wb.CalculateMode = XLCalculateMode.Auto;
wb.SaveAs(FileName);

After saving, the excel formats are getting changed completely and calculations are going wrong. Percentage columns are changing to Date format. How can I proceed here by saving excel without changing existing formats. attached correct and incorrect excel.

Regards
Comments: Please log at http://github.com/ClosedXML/ClosedXML if this is still an issue.

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>