Can you please provide sample code to reproduce the problem?

The following code works fine with 3.5-beta6 and current trunk:

        HSSFWorkbook wb = new HSSFWorkbook();
        HSSFSheet sh = wb.createSheet();
        HSSFFooter f = sh.getFooter();
        f.setLeft(HSSFFooter.date());
        f.setCenter(HSSFFooter.tab());
        f.setRight("Page " + HSSFFooter.page() + " of " + 
HSSFFooter.numPages());

Yegor

Footers worked in poi version 3.5-beta4,
but in poi version 3.5-beta6 the following code gives the exception message:
            bad text 'Page &P of &N'

public static void foot (HSSFSheet sheet){
     HSSFFooter f = sheet.getFooter();
     f.setLeft(HSSFFooter.date());
     f.setCenter(HSSFFooter.tab());
f.setRight("Page " + HSSFFooter.page() + " of " + HSSFFooter.numPages()); }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to