Dear Team,
I’m trying to create the excel using Aspose.cells 8.7.0 jar file. My excel have multiple pages with tabular format chart. How we can convert it into PDF and PPT with multiple pages at run time. Is it possible to get the last cell of every page?
Could you please help regarding this.
Thanks
Prabu R
Hi,
Dear Amjad Sahi,
Thanks for your solution.
I’m trying to convert the excel with multiple pages into PDF and PPT. For single page excel it’s working fine and able to create pdf and ppt perfectly. If I have multiple pages, I’m getting the multiple pages pdf without header row. To include the header row, I have included the below code.
Worksheet worksheet = workbook.getWorksheets().get(0);
PageSetup pageSetup = worksheet.getPageSetup();
PdfSaveOptions saveOptions = new PdfSaveOptions(com.aspose.cells.SaveFormat.PDF);
saveOptions.setAllColumnsInOnePagePerSheet(true);
saveOptions.setOnePagePerSheet(false);
saveOptions.setCreatedTime(DateTime.getNow());
pageSetup.setPrintTitleRows("$6:$6");
But not able to get the header row in every page. Could you please guide me to get the header row in every pages.
Also how to get the multiple slides, when we have more number of pages in excel, while creating ppt from excel.
Thanks
Prabu R
prabu759101:
I'm trying to convert the excel with multiple pages into PDF and PPT. For single page excel it's working fine and able to create pdf and ppt perfectly. If I have multiple pages, I'm getting the multiple pages pdf without header row. To include the header row, I have included the below code.
Worksheet worksheet = workbook.getWorksheets().get(0);
PageSetup pageSetup = worksheet.getPageSetup();
PdfSaveOptions saveOptions = new PdfSaveOptions(com.aspose.cells.SaveFormat.PDF);
saveOptions.setAllColumnsInOnePagePerSheet(true);
saveOptions.setOnePagePerSheet(false);
saveOptions.setCreatedTime(DateTime.getNow());
pageSetup.setPrintTitleRows("$6:$6");
But not able to get the header row in every page. Could you please guide me to get the header row in every pages.
prabu759101:
Also how to get the multiple slides, when we have more number of pages in excel, while creating ppt from excel.
Dear Amjad Sahi,
I have moved the code as you have said. But it’s not working.
Herewith I have attached the template for your reference. Could you please provide the possible solution for this.
Regards
Prabu R
Hi,
Thanks a lot Amjad Sahi!!!
Now it’s working fine. Thank you for your quick response.
Regards
Prabu R
Hi,
Hi Amjad Sahi,
Thank you for your help.
I have achieved to set the title rows in every page.
My new requirement:
If I don’t want to set the title rows to a particular page, then how can I achieve it. In my case, the footer may be in new page. At that time, I don’t want to set the title rows.
For better understanding, please refer the attachment. Could you please guide us to resolve this issue.
Regards
Prabu R
Hi,