Reading printer model name
Hi,
I'm looking for some sample code (VBA97 or VB6) for reading the model (driver?) name of a printer (the default printer would be fine).
The ActivePrinter property gives me <printer path> on <port>, but what I am after is the model name that the driver provides (as in the 'General' tab of the printer properties).
It seems possible in VBA XP (I think the driverName property can be used), but I'm stuck for VBA 97/VB6...
I've thought of using the HKLM\System\CurrentControlSet\Print\Printers\Default registry settings, but this doesn't appear to get updated when I set a default printer (in WinXP, anyway).
Any help would be greatly appreciated!!!
Thanks,
Iain
Have you tried devicename of printer object?
try:
MsgBox Printer.DeviceName
Hope it helps
Cesare I.
Re: Reading printer model name
Hi all,
I want to know the model name of the printer not the driver name installed on it. The sample shared is giving the name of the driver not the model name. Is there any way to get the printer model name?
Thanks
Inar
Re: Reading printer model name
check the link, which direct to the answer posted at VBForums.com
Hope, this will help.
[Link]
http://www.vbforums.com/showthread.php?t=111383
[/Link]