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

Free Support Forum - aspose.com

Multiple Print Area To Pdf

Is it possible to set more than one print area?
I need to print the fields “A1: D10” and “A30: D40” as pdf as an example


Thanks for your query.

Yes, you may do that, see the sample line of code that you may try (for your desired worksheet(s) in the workbook) before rendering to PDF file format:
Sample code:

//Set the worksheet’s printable area.
worksheet.PageSetup.PrintArea = “A1:D10,A30:D40”;

Hope, this helps a bit.