This documentation is archived and is not being maintained.

InvalidPrinterException Class

Represents the exception that is thrown when trying to access a printer using invalid printer settings.

For a list of all members of this type, see InvalidPrinterException Members.

System.Object
   System.Exception
      System.SystemException
         System.Drawing.Printing.InvalidPrinterException

[Visual Basic]
Public Class InvalidPrinterException
   Inherits SystemException
[C#]
public class InvalidPrinterException : SystemException
[C++]
public __gc class InvalidPrinterException : public SystemException
[JScript]
public class InvalidPrinterException extends SystemException

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

The most common cause of invalid printer settings is referencing a printer that does not exist.

For more information on printing, see the System.Drawing.Printing namespace overview.

Requirements

Namespace: System.Drawing.Printing

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Drawing (in System.Drawing.dll)

See Also

InvalidPrinterException Members | System.Drawing.Printing Namespace

Show: