|
|
Gets the name of the file (if any) that is printed out as a seperator between print jobs for the printer
[Visual Basic] Public Property SeperatorFilename As String [C#] public string SeperatorFilename {get;set}
Gets or sets the name of the file (if any) that is printed out as a seperator between print jobs for the printer
Throws an InsufficentPrinterAccessRightsException if set and the logged in user does not have sufficient privilege to alter this printer information
[Visual Basic] The following example changes the seperator filename, if possible.
[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.PrinterChanged, AddressOf PrinterInfoChangetest mPr.ThreadTimeout = -1 mPr.DeviceName = PrinterDeviceName End Sub Public Sub PrinterInfoChangetest(ByVal sender As Object, ByVal e As EventArgs) With CType(e, PrinterEventArgs).PrinterInformation If .SeperatorFilename = "" Then Try .SeperatorFilename = "June2003.sep" Catch ep As As PrinterQueueWatch.PrinterMonitoringExceptions.InsufficentPrinterAccessRightsException Debug.Write("You cannot change this printer setting") End Try End If End With End Sub
Namespace: PrinterQueueWatch
Platforms: Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
PrinterInformation overview , All PrinterInformation members