PrintJob.JobSize Property

Specifies the size of the job being printed (in bytes)

[Visual Basic]
Public ReadOnly Property JobSize As Integer
public int JobSize {get;}
public: __property int get_JobSize();
public function get JobSize() : int;

Property Value

Specifies the size of the job being printed (in bytes)


This value will not be the final size of the print job while the job is still being spooled


[Visual Basic] The following example prints the details of a job to a trace when a job is deleted from the queue being monitored

[Visual Basic] 
Private mPr As PrinterMonitorComponent

Public Sub StartWatching(ByVal PrinterDeviceName As String)

   mPr = New PrinterMonitorComponent()

   AddHandler mPr.JobDeleted, AddressOf Deletedtest

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

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

   With CType(e, PrintJobEventArgs).PrintJob
	Trace.WriteLine("Job deleted : - Details...")
        Trace.WriteLine("** Colour: " & .Color.ToString)
        Trace.WriteLine("** Copies: " & .Copies.ToString)
        Trace.WriteLine("** Data Type: " & .DataType)
        Trace.WriteLine("** Document: " & .Document)
        Trace.WriteLine("** Job size: " & .JobSize)
   End With

End Sub


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.