How to ignore print areas set in a worksheet?

4 Aug 20211 minute to read

You can set the print area to null or empty to ignore the print areas in a worksheet as below. Setting the PrintArea property will impact the process of exporting to PDF. If the print area is set, the export to PDF includes only the print area.

worksheet.PageSetup.PrintArea = string.Empty;
worksheet.PageSetup.PrintArea = string.Empty
worksheet.PageSetup.PrintArea = string.Empty;
worksheet.PageSetup.PrintArea = string.Empty;
worksheet.PageSetup.PrintArea = string.Empty;

See Also