I've a workbook with 5 worksheets. I define a print area in the last worksheet. When I convert the workbook to pdf, all the worksheets get converted. I only want the content of the print area in the last worksheet to be converted. How can I do that?
I think you may utiilize fit to pages wide / tall (Click File|Page Setup|Page tab.... in MS Excel Or using the code: Aspose.Cells.PageSetup pagesetup = worksheet.PageSetup; pagesetup.FitToPagesWide = 1; pagesetup.FitToPagesTall = 0; ) for your requirement, save the file and then convert it to .pdf file.
If you still find the issue, kindly post your template excel file here, we will check it soon.