Back to Devexpress

PdfPrinterSettings.PageNumbers Property

officefileapi-devexpress-dot-pdf-dot-pdfprintersettings-bd4da2a1.md

latest5.2 KB
Original Source

PdfPrinterSettings.PageNumbers Property

Specifies the PDF document page numbers to be printed.

Namespace : DevExpress.Pdf

Assembly : DevExpress.Pdf.v25.2.Drawing.dll

NuGet Package : DevExpress.Pdf.Drawing

Declaration

csharp
public int[] PageNumbers { get; set; }
vb
Public Property PageNumbers As Integer()

Property Value

TypeDescription
Int32[]

An array of integer values that correspond to page numbers.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to PageNumbers
WinForms ControlsPdfPageSetupDialogShowingEventArgs

.PrinterSettings .PageNumbers

| | WPF Controls | PageSetupDialogShowingEventArgs |

.PrinterSettings .PageNumbers

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the PageNumbers property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

pdf-document-api-customize-pdf-print-output/CS/CustomizePrintSettings/Program.cs#L16

csharp
// Specify the page numbers to be printed.
settings.PageNumbers = new int[] { 1, 2, 3, 4, 5, 6 };

pdf-document-api-specify-printer-settings/CS/PdfProcessorPrinterOptions/Program.cs#L18

csharp
pdfPrinterSettings.PageOrientation = PdfPrintPageOrientation.Portrait;
pdfPrinterSettings.PageNumbers = new int[] { 1, 3, 4, 5 };

pdf-viewer-use-the-pdf-printer-settings-to-print-a-file/CS/PdfPrinterSettingsDemo/Form1.cs#L31

csharp
pdfPrinterSettings.PageOrientation = PdfPrintPageOrientation.Auto;
pdfPrinterSettings.PageNumbers = new int[] { 1, 3, 4, 5 };
pdfPrinterSettings.ScaleMode = PdfPrintScaleMode.CustomScale;

how-to-use-pdf-printer-settings/CS/SpecifyPrinterSettings/MainWindow.xaml.cs#L27

csharp
pdfPrinterSettings.PageOrientation = PdfPrintPageOrientation.Auto;
pdfPrinterSettings.PageNumbers = new int[] { 1, 3, 4, 5 };
pdfPrinterSettings.ScaleMode = PdfPrintScaleMode.CustomScale;

pdf-document-api-customize-pdf-print-output/VB/CustomizePrintSettings/Program.vb#L15

vb
' Specify the page numbers to be printed.
settings.PageNumbers = New Integer() {1, 2, 3, 4, 5, 6}
' Handle the PrintPage event to specify print output.

pdf-document-api-specify-printer-settings/VB/PdfProcessorPrinterOptions/Program.vb#L15

vb
pdfPrinterSettings.PageOrientation = PdfPrintPageOrientation.Portrait
pdfPrinterSettings.PageNumbers = New Integer() {1, 3, 4, 5}
' Setting the PdfPrintScaleMode property to CustomScale requires

pdf-viewer-use-the-pdf-printer-settings-to-print-a-file/VB/PdfPrinterSettingsDemo/Form1.vb#L30

vb
pdfPrinterSettings.PageOrientation = PdfPrintPageOrientation.Auto
pdfPrinterSettings.PageNumbers = New Integer() {1, 3, 4, 5}
pdfPrinterSettings.ScaleMode = PdfPrintScaleMode.CustomScale

See Also

PdfPrinterSettings Class

PdfPrinterSettings Members

DevExpress.Pdf Namespace