Excel - Page Numbering
Posted: Wed Nov 10, 2010 9:41 am
Hello,
I have written an excel report using Jade.
The only thing I have not been able to do is get the page numbering to work.
Excel expects: Page &[Page] of &[Pages] in footer or header.
I know I can set the excel footer with:
sheet.pageSetup.rightFooter := 'Junk';
My snippet of code that works except for footer:
vars
sheet: I_Worksheet;
begin
sheet := createXLSSheet(accountType, accountHdr & accountNo & ' - ' & billDateHeader, excelHeaderArray);
sheet.range('L2', 'O2').putHorizontalAlignment(4);
sheet.pageSetup.orientation := 2; //Landscape
sheet.pageSetup.centerHeader := accountHdr & accountNo & ' - ' & billDateHeader;
sheet.pageSetup.rightFooter := 'Page &[Page] of &[Pages]';
end;
PAW
I have written an excel report using Jade.
The only thing I have not been able to do is get the page numbering to work.
Excel expects: Page &[Page] of &[Pages] in footer or header.
I know I can set the excel footer with:
sheet.pageSetup.rightFooter := 'Junk';
My snippet of code that works except for footer:
vars
sheet: I_Worksheet;
begin
sheet := createXLSSheet(accountType, accountHdr & accountNo & ' - ' & billDateHeader, excelHeaderArray);
sheet.range('L2', 'O2').putHorizontalAlignment(4);
sheet.pageSetup.orientation := 2; //Landscape
sheet.pageSetup.centerHeader := accountHdr & accountNo & ' - ' & billDateHeader;
sheet.pageSetup.rightFooter := 'Page &[Page] of &[Pages]';
end;
PAW