Represents a server that hosts one or more printers
For a list of all members of this type, see PrintServer Members.
[Visual Basic] Public Class PrintServer [C#] public class PrintServer [C++] public __gc class PrintServer [JScript] public class PrintServer
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.
The PrintServer class provides information about the server
The following example returns the list of printer drivers installed on the named printer
[Visual Basic] Public Sub ListPrintDrivers(ByVal ServerName As String) Try Dim Server As New PrintServer(ServerName) For Each pd As PrinterDriver In Server.PrinterDrivers Trace.WriteLine(pd.Name) Next pd Catch Trace.WriteLine("Server not found") End Try End Sub
Version : Release 2.0.1 or higher
Platforms: Windows NT 4.0, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family
Assembly: PrinterQueueWatch (in PrinterQueueWatch.dll)
© 2003 Merrion Computing Ltd. All rights reserved.