PDFView4NET WinForms Edition


PrintRanges Property (PDFPrintSettings)
Gets or sets the ranges of pages to print.
Syntax
'Declaration
 
Public Property PrintRanges As String
'Usage
 
Dim instance As PDFPrintSettings
Dim value As String
 
instance.PrintRanges = value
 
value = instance.PrintRanges
public string PrintRanges {get; set;}

Property Value

Multiple page ranges, separated by comma.
Remarks
Use this property to print multiple page ranges, because the PrinterSettings object allows to print only a single continuous page range. When this property is set, the System.Drawing.Printing.PrinterSettings.PrintRange property is ignored. Values accepted by this property look like this: "1-3,5,7,9-12". If a range is not valid, those pages are not printed.
Requirements

Target Platforms: Windows 7, Windows 10, Windows 11, Windows Server 2022, Windows Server 2025

See Also