We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Cells setFistPageFooter image doesn't work

Hello, I’m using aspose-cells 7.2.1, I’m trying add image to first page footer.

My code is:
WorksheetCollection worksheets = workbook.getWorksheets();
for (int i = 0; i < worksheets.getCount(); i++) {
Worksheet sheet = worksheets.get(i);
com.aspose.cells.PageSetup pageSetup = sheet.getPageSetup();
pageSetup.setFirstPageFooter(ParagraphAlignment.RIGHT, “&G”);
pageSetup.setFooterPicture(ParagraphAlignment.RIGHT, bytes);
}
}

But image attached to all pages instead of first.
What I’m doing wrong?

Thanks in advance!
Vladimir

Hi,

Thanks for your posting and using Aspose.Cells for Java.

After initial investigation, we noticed this issue. In order to investigate this issue further and precisely, kindly provide us your complete sample runnable code as well as your actual and expected output xls/xlsx files.

You can manually create your expected output files with Ms-Excel and attach here.

We will soon look into your issue and advise you asap.