Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set default printer (16 bit)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00644443
Message ID:
00644446
Vues:
13
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform