ResolutionList

Represents a list of resolutions.

public class ResolutionList : IEnumerable, IEnumerable<Resolution>
Public Class ResolutionList
    Implements IEnumerable, IEnumerable(Of Resolution)

Inheritance: ObjectResolutionList

Implements: IEnumerable, IEnumerable<Resolution>

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 resolution to 600 dpi 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")

        ' Get the list of available resolutions for the printer
        Dim MyResolutions As ResolutionList = MyPrintJob.Printer.Resolutions

        ' Set the resolution to 600 dpi if it is supported by the printer
        If (Not MyResolutions(600, 600) Is Nothing) Then
            MyPrintJob.PrintOptions.Resolution = MyResolutions(600, 600)
        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 the list of available resolutions for the printer
        ResolutionList resolutions = printJob.Printer.Resolutions;

        // Get the resolution to 600 dpi if it is supported by the printer
        if (resolutions.GetResolution(600,600) != null)
        {
            printJob.PrintOptions.Resolution = resolutions[600, 600];
        }

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

Properties

CountGets the value indicating the number of printer resolutions in the list.
DraftGets the Draft quality based resolution setting.
HighGets the High quality based resolution setting.
Item[Int32]Gets a printer resolution by index.
LowGets the Low quality based resolution setting.
MediumGets the Medium quality based resolution setting.

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)
GetResolution(Int32, Int32)Gets a printer resolution by name.
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