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

@mehmet_46,

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:
e.g
Sample code:


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

Hope, this helps a bit.