Skip to main content

Resolution

Version: 3.0

cete.dynamicpdf.printing.resolution

Resolution​

  • Namespace: ceTe.DynamicPDF.Printing
  • Assemblies: ceTe.DynamicPDF.Printing.40.x64.dll, ceTe.DynamicPDF.Printing.40.x86.dll

Represents the resolution of the printer.

public class Resolution
Public Class Resolution

Inheritance: Object → Resolution

Licensing​

This class is a DynamicPDF PrintManager feature. The following license is required for non-evaluation usage:

  • DynamicPDF PrintManager for .NET

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 Medium resolution from the printer
Dim MyResolution As Resolution = ResolutionList.Medium

' 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 Medium resolution from the printer
Resolution resolution = ResolutionList.Medium;

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

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

Properties​

HorizontalDpi​

Gets the horizontal resolution.

public int HorizontalDpi { get; }
Public Property HorizontalDpi As Int32

Property Value​

Int32

VerticalDpi​

Gets the vertical resolution.

public int VerticalDpi { get; }
Public Property VerticalDpi As Int32

Property Value​

Int32

Methods​

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

See Also​

ceTe.DynamicPDF.Printing