Hello,
In my source xlsx file on the 'Page Layout' tab the 'Size' property is set to A3, but after saving the output file it is changed to A4.
Please investigate this issue.
Thank you
Tamas
Page Layout / Size
Re: Page Layout / Size
As far as I can see, XLS.Sheets.Xc12Sheet.PageSetup.PaperSize always returns psA4.
Re: Page Layout / Size
Hello
Use: XLS[0].PrintSettings.PaperSize := psLegal;
Use: XLS[0].PrintSettings.PaperSize := psLegal;
Lars Arvidsson, Axolot Data
Re: Page Layout / Size
Hello Lars,
The problem is the XLS.Sheets[0].Xc12Sheet.PageSetup.PaperSize doesn't contain the right value after reading the file.
It should be the value from the \xl\worksheets\sheet1.xml:
As you can see, paperSize is 8 (psA3) in this example, but when I open the file, the XLS.Sheets[0].Xc12Sheet.PageSetup.PaperSize has the value of 9 (psA4).
The problem is the XLS.Sheets[0].Xc12Sheet.PageSetup.PaperSize doesn't contain the right value after reading the file.
It should be the value from the \xl\worksheets\sheet1.xml:
Code: Select all
<pageSetup paperSize="8" orientation="portrait" r:id="rId452"/>
Re: Page Layout / Size
Hello
OK, I understand now. This will be fixed in the next update.
OK, I understand now. This will be fixed in the next update.
Lars Arvidsson, Axolot Data