I want to disable to print in a virtual printer (Ex. Adobe PDF, etc.)

I want to know if the default printer is not a real (paper) printer.

Thanks in advanced


In VB's help, on the index tab, type in SetPrinter and hit enter. When the help file comes up scroll down to the bottom and click on Printing and Print Spooler Functions. You will need to look at OpenPrinter, PRINTER_DEFAULTS, DEVMODE, DeviceCapabilities, GetPrinterDriver, and quite a few others including the SetPrinter. Now what you will have to do is to figure out if the driver is printing to disk and that is easy enough via the GetPrinterDriver, as least for known drivers like adobe's, but for others, well you have enough information to get started.

Good Luck