Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing printer in browser control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP
Divers
Thread ID:
01378577
Message ID:
01378638
Vues:
9
I wouldn't go this route because win.ini is outdated and could be removed in any new Windows version. I'm not even sure if it still works in Vista and later.

>I found a complete example of what you have to do to change the system-wide default printer so that when you call:
>
> Explorer.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER, "", "" 'Print, and don't prompt user
>
>it will call the correct default printer... I would appreciate a translation into VFP code of how to call the SendMessage() function from FoxPro (SendMessage() cause all applications to reload the WIN.INI file):
>
>"In a new project, add a listbox and a commandbutton to the form, then add a new module to the form.
>
>In the module, add the following code:
>
< snip >
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform