The Printer class implements the System.IDisposable interface, it is recommended that you follow the standard .NET dispose pattern when using the Printer class. For more information, refer to the System.IDisposable interface documentation in MSDN.
For an example, refer to Printer.