Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need way to get the printer driver name from within VFP
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00338341
Message ID:
00338541
Views:
10
>George,
> thanks for the info. Because I need this to change from the default printer it looks like I'm going to have to learn to read the registry from within VFP. Is there any simple way? I understand what I need I'm just not sure how to do it in VFP.
>

If you have VFP6, there's a class in the FFC that will read and write the registry for text values. There's also INI file handling in the FFC.

VFP5 and earlier versions are supported by a number of classes downloadable from here on UT. In all of these cases, including the FFC class, calls to the Win32 API are used to do the actual work.

If you have the WSH available, Wscript.Shell has methods to read/write in the registry; see FAQ #7885, or the links in my .sig
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform