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
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