Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetPrinterDriver() problem
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00936149
Message ID:
00936306
Views:
22
Thank you for your reply

this is a good solution too. thank you. i will, however, stay with the api solution from Sergey. if've tried throughout my app to use api alone.

thank you again!

>You already got your answer, but an alternative would be to use WMI:
>
>
>* loWMI   = Getobject('WinMgmts:') && VFP7+
>loLocator = createObject("wbemScripting.swbemLocator")
>loWMI	  = loLocator.ConnectServer()
>loPrinter = loWMI.Get('Win32_Printer.DeviceID="\\\\print01\\Plan1"')
>? loPrinter.DriverName
>
Previous
Reply
Map
View

Click here to load this message in the networking platform