Sets or returns the area of the worksheet that will be printed. Content outside of this area will not be printed.

(This is not supported for charts.)

 public Area PrintArea{ get; set; }
Public Property PrintArea() As Area

By default all of the content will be printed, and PrintArea will return an area covering the entire worksheet.

This property has no effect when rendering a worksheet to a PDF document.  If you wish to save only a specific area to the PDF document, use the Area.SavePdf method on the area you wish to save.

          //--- Get PrintArea
          Area prntArea = ps.PrintArea;

          //--- Set PrintArea
          ps.PrintArea = prntArea;
        
          '--- Get PrintArea
          Dim prntArea As Area = ps.PrintArea

          '--- Set PrintArea
          ps.PrintArea = prntArea