DuplexMode Enum
- Namespace: ceTe.DynamicPDF.Printing
- Assemblies: ceTe.DynamicPDF.Printing.40.x64.dll, ceTe.DynamicPDF.Printing.40.x86.dll
Represents duplex modes.
public enum DuplexMode
Public Enum DuplexMode
Inheritance: Object → ValueType → Enum → DuplexMode
Fields
| DuplexMode.DuplexHorizontal | 3 | Duplex mode that flips the page horizontally. |
|---|---|---|
| DuplexMode.DuplexVertical | 2 | Duplex mode that flips the page vertically. |
| DuplexMode.Simplex | 1 | Simplex (non duplex) mode. |
Licensing
This class is a DynamicPDF PrintManager feature. The following license is required for non-evaluation usage:
- DynamicPDF PrintManager for .NET
Examples
The following examples creates a print job, sets the duplex mode if it is supported by the printer and prints the job.
Imports System
Imports ceTe.DynamicPDF.Printing
Module MyModule
Sub Main()
' Create a print job
Dim MyPrintJob As PrintJob = New PrintJob("PrinterName", "C:\MyDocument.pdf")
' Set the duplex mode if it is supported by the printer
If (MyPrintJob.Printer.Duplex) Then
MyPrintJob.PrintOptions.DuplexMode = DuplexMode.DuplexHorizontal
End If
' Print the job
MyPrintJob.Print()
End Sub
End Module
using System;
using ceTe.DynamicPDF.Printing;
class MyClass
{
static void Main()
{
// Create a print job
PrintJob printJob = new PrintJob("PrinterName", @"C:\MyDocument.pdf");
// Set the duplex mode if it is supported by the printer
if (printJob.Printer.Duplex)
{
printJob.PrintOptions.DuplexMode = DuplexMode.DuplexHorizontal;
}
// Print the job
printJob.Print();
}
}