PaperSourceList

Represents a list of paper sources.

public class PaperSourceList : IEnumerable, IEnumerable<PaperSource>

Inheritance: ObjectPaperSourceList

Implements: IEnumerable, IEnumerable<PaperSource>

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.

using System;
using ceTe.DynamicPDF.Printing;

class MyClass
{
    static void Main()
    {
        // Create a print job
        PrintJob printJob = new PrintJob("PrinterName", @"C:\MyDocument.pdf");

        // Get the list of available paper sources for the printer
        PaperSourceList paperSourceList = printJob.Printer.PaperSources;

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

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

Properties

AutomaticGets the 'Automatic' paper source if it is specified by the printer.
CassetteGets the 'Cassette' paper source if it is supported by the printer.
CountGets the number of paper sources in the list.
EnvelopeGets the 'Envelope' paper source if it is specified by the printer.
EnvelopeManualGets the 'EnvelopeManual' paper source if it is specified by the printer.
FirstGets the 'First' paper source if it is specified by the printer.
FormSourceGets the 'FormSource' paper source if it is specified by the printer.
Item[Int32]Gets a PaperSource object by index.
Item[String]Gets a PaperSource object by name.
LargeCapacityGets the 'LargeCapacity' paper source if it is specified by the printer.
LargeFormatGets the 'LargeFormat' paper source if it is specified by the printer.
LastGets the 'Last' paper source if it is specified by the printer.
LowerGets the 'Lower' paper source if it is specified by the printer.
ManualGets the 'Manual' paper source if it is specified by the printer.
MiddleGets the 'Middle' paper source if it is specified by the printer.
OnlyOneGets the 'OnlyOne' paper source if it is specified by the printer.
SmallFormatGets the 'SmallFormat' paper source if it is specified by the printer.
TractorGets the 'Tractor' paper source if it is specified by the printer.
UpperGets the 'Upper' paper source if it is specified by the printer.

Methods

Equals(Object)Determines whether the specified Object is equal to the current Object .
(Inherited from Object)
GetEnumerator()Returns an enumerator that iterates through a collection.
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