PaperSource

Represents the paper source.

public class PaperSource
Public Class PaperSource

Inheritance: ObjectPaperSource

Licensing Info

This class 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 paper source 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")
			
        ' Get a paper source from the list
        Dim MyPaperSource As PaperSource = MyPrintJob.Printer.PaperSources.Automatic

        ' Set the paper source if it is supported by the printer
        If (Not MyPaperSource Is Nothing) Then
            MyPrintJob.PrintOptions.PaperSource = MyPaperSource
        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");

        // Get a paper source from the list
        PaperSource paperSource = printJob.Printer.PaperSources.Automatic;

        // Set the paper source if it is supported by the printer
        if (paperSource != null)
        {
            printJob.PrintOptions.PaperSource = paperSource;
        }

        // Print the job
        printJob.Print();
    }
}

Properties

DeviceContextBinGets the value of the paper source from DC_BINS array.
NameGets the paper source name.

Methods

Equals(Object)Determines whether the specified Object is equal to the current Object .
(Inherited from Object)
GetHashCode()Serves as a hash function for a particular type.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
ToString()Returns a String that represents the current Object .
(Inherited from Object)

See Also

ceTe.DynamicPDF.Printing

In this topic