Page 1 of 1

HeaderFooter

Posted: Thu Mar 10, 2022 11:32 pm
by GNiessen10
How do you set the Header of a sheet in XLSReadWriteII5? I can create the sheet and set the date in the Columns and Rows. But I don't see a way to how to Set the Header. There is a TXLSHeaderFooter.Create that is looking for a TXc12HeaderFooter. But how does that get assigned to the Worksheet?

I do see a TXLSWriteXLSX.WriteSheetHeaderFooter, but that seems to copy from a source to a destination. And I am not sure what is expected there. Again not seeing a connection to the workbook or sheets.

Re: HeaderFooter

Posted: Sat Mar 12, 2022 10:16 am
by larsa
Hello

Use: XLS[0].PrintSettings.HeaderFooter...

For more info and formatting codes, please take a look at the source code.

Re: HeaderFooter

Posted: Fri Aug 12, 2022 12:57 pm
by GNiessen10
I have things working like they were in XLSReadWrite, except for the fact that when creating an XLS file the Header appears to be limited to 254 characters. Yet before it was not limited. I traced it through the source and I don't see that the string in being clipped in XLSReadWriteII, so it must be that the older version was doing Headers differently. Any idea how to over come the limit?