OrientationType Enum

Represents the type of orientation.

public enum OrientationType

Inheritance: ObjectValueTypeEnumOrientationType

Fields

OrientationType.Auto1Automatically select the orientation based on the page and the output paper sizes.
OrientationType.Landscape3Landscape orientation.
OrientationType.Portrait2Portrait orientation.

Licensing Info

This enum is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Examples

The following examples creates a print job, sets the orientation and prints the job.

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();
    }
}

See Also

ceTe.DynamicPDF.Printing