Resolution

Represents the resolution of the printer.

public class Resolution
Public Class Resolution

Inheritance: ObjectResolution

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 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 600 dpi resolution from the printer
        Dim MyResolution As Resolution = MyPrintJob.Printer.Resolutions(600, 600)

        ' Set the resolution if it is supported by the printer
        If (Not MyResolution Is Nothing) Then
            MyPrintJob.PrintOptions.Resolution = MyResolution
        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 600 dpi resolution from the printer
        Resolution resolution = printJob.Printer.Resolutions[600, 600];

        // Set the resolution if it is supported by the printer
        if (resolution != null)
        {
            printJob.PrintOptions.Resolution = resolution;
        }

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

Properties

HorizontalDpiGets the horizontal resolution.
VerticalDpiGets the vertical resolution.

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