How to ignore print areas in .NET Excel Library

14 Aug 20261 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

See Also