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

Free Support Forum - aspose.com

How convert selected sheet to pdf

I need to convert excel to pdf, i have a excel with three work sheet, but i need to convert only index =1 page or index=1,2 like that.Means i need a option that selected sheet need to convert to pdf. How can do this?

Aspose.Cells.Workbook workbook = new Aspose.Cells.Workbook(InputExcelFilePath);


Thanks for your posting and using Aspose.Cells.

You can hide your worksheets which you do not want to render to PDF and then save your workbook into PDF format. This way, your only visible worksheets will be rendered to PDF.

Please see the following documentation article which illustrates how to render each worksheet into separate PDF file. You can use this same approach to render your selected worksheets into PDF.