Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set default printer (16 bit)
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00644443
Message ID:
00644446
Views:
12
This message has been marked as a message which has helped to the initial question of the thread.
>Hello,
>
>I want to do the following in a FoxPro 2.6 application:
>Get the name of the default printer
>Set the default printer to a specific printer
>Do some reporting
>Set the default printer to the previous setting.
>
>Is there a 16 bit API function that I could use for this purpose?
>
>Thanks for any help in advance!

You can use GetProfileString() and WriteProfileString() to retrieve the information from the Windows section Device entry of the WIN.INI file. This works even if win.ini is actually empty since under Win32 they use the registry entries.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform