Troubleshooting Exceptions: System.Drawing.Printing.InvalidPrinterException
An InvalidPrinterException exception is thrown when an attempt is made to access a printer using invalid printer settings.
The most common cause of invalid printer settings is referencing a nonexistent printer. For more information, see System.Drawing.Printing.
If no printer has been specified, make sure a default printer has been installed. For more information, see PrinterSettings