[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IPageSetup.PrintPageRange

PrintPageRange Property

PrintPageRange

Gets or sets the range of pages to print, where page numbers or page ranges are separated by commas and counted from the beginning of the document.

Use this property to retrieve the page-range string that controls which pages are included in the print operation. For example, "1,3,5-12" prints page 1, page 3, and pages 5 through 12.

Declaration
string PrintPageRange { get; set; }
Property PrintPageRange As String
Examples
IPageSetup pageSetup = worksheet.PageSetup;
pageSetup.PrintPageRange = "1,3-5";
string printPageRange = pageSetup.PrintPageRange;