OrientationType Enum
Represents the type of orientation.
public enum OrientationType
Public Enum OrientationType
Inheritance: ObjectValueTypeEnumOrientationType
Fields
OrientationType.Auto | 1 | Automatically select the orientation based on the page and the output paper sizes. |
OrientationType.Landscape | 3 | Landscape orientation. |
OrientationType.Portrait | 2 | Portrait orientation. |
Licensing Info
This enum is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF PrintManager selected.
- A DynamicPDF PrintManager for .NET v4.X Developer license.
Examples
The following examples creates a print job, sets the orientation 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 orientation
MyPrintJob.PrintOptions.Orientation = OrientationType.Landscape
' 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 orientation
printJob.PrintOptions.Orientation = OrientationType.Landscape;
// Print the job
printJob.Print();
}
}