Is printer installed?

  • Thread starter Thread starter Ian King
  • Start date Start date
I

Ian King

Can anyone help with a way of programmatically determining if a specific
printer (in this case win2Pdf pdf creator) is installed on a Client machine,
before attempting to open a report?

The report in question is quite complex and can have hundreds of pictures in
it. I have found that Access/Windows often runs out of memory while
previewing as a report (and it's really slow), despite setting virtual
memory to maximum. Printing to a pdf printer file seems to have overcome
this problem and makes previewing much quicker.

Many thanks to the group for this and all previous help.

Ian King
 
Ian:

Allen makes excellent suggestions. However there's also the rare case where
the user will change the name of the printer on their machine. Then, the
only way to tell if its installed is to query the registery for either the
printer's specific registry keys (HKEY_LOCAL_MACHINE), or to enumerate the
printers under the
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Printers and under each
printer's entry, look at the PrinterDriver entry for the name of the driver
associated with the printer you are targeting.

HTH
 
Back
Top