PrintJob.PrinterResolutionKind Property

Specifies which of the standard paper sources this print job is to use.

[Visual Basic]
Public ReadOnly Property PrinterResolutionKind As PrinterResolutionKind
[C#]
public PrinterResolutionKind PrinterResolutionKind {get;}
[C++]
public: __property PrinterResolutionKind get_PrinterResolutionKind();
[JScript]
public function get PrinterResolutionKind() : PrinterResolutionKind;

Property Value

Specifies which of the standard paper sources this print job is to use.

Remarks

If this is PrinterResolutionKind.Custom then the vertical and horizontal printer resolutions are given by PrinterResolutionX and PrinterResolutionY respectively

Members

Member name Description
Custom Custom resolution.
Draft Draft-quality resolution.
High High resolution.
Low Low resolution.
Medium Medium resolution.

Example

[Visual Basic] The following example prints the printer resolution kind of a job to a trace when a job is added to the queue being monitored

[Visual Basic] 
Private mPr As PrinterMonitorComponent

Public Sub StartWatching(ByVal PrinterDeviceName As String)

   mPr = New PrinterMonitorComponent()

   '\\ For efficieny reasons, do not monitor printer information changed events
   mPr.MonitorPrinterChangeEvent = False

   AddHandler mPr.JobAdded, AddressOf Addedtest

   mPr.ThreadTimeout = -1
   mPr.DeviceName = PrinterDeviceName 
   
   
End Sub

Public Sub Addedtest(ByVal sender As Object, ByVal e As EventArgs)

   With CType(e, PrintJobEventArgs).PrintJob
	Trace.WriteLine("Job deleted : - Details...")
        Trace.WriteLine("** Printer Resolution: " & .PrinterResolutionKind.ToString)
   End With

End Sub

Requirements

Namespace: PrinterQueueWatch

Platforms:  Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family

See Also

PrintJob overview , All PrintJob members


© 2003 Merrion Computing Ltd. All rights reserved.