Hello
I'm creating xls document from a template "template_1.xls" (document with landscape orientation and certain document margins) .
After simple manipulation I save result file as "xlsio-result.xls":
ExcelEngine excelEngine = new ExcelEngine();
IWorkbook excelWorkbook = excelEngine.Excel.Workbooks.Open("d:\\template_1.xls");
IWorksheet excelSheet = excelWorkbook.Worksheets[0];
excelSheet.PageSetup.LeftHeader = "Header after xlsio";
excelWorkbook.SaveAs("d:\\xlsio-result.xls");
As you can see in "xlsio-margins.png" image or comparing "template_1.xls" and "xlsio-result.xls" documents header was changed.
Could you explain how to avoid such changing? I want header margins in result document remain the same as they are in a template. Is it possible?
Thanks Alexander.
xls-margins_66979a9e.zip