Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change Windows default printer in Win 98 programatically
Message
De
05/02/2007 06:20:07
 
 
À
05/02/2007 06:09:20
Aman Bains
Jaguar Computers
Jalandhar, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows '98
Divers
Thread ID:
01192320
Message ID:
01192329
Vues:
13
>>>How to Change Windows default printer in Win 98 programatically?
>
>>You don't! I suggest that you fix your problem instead of fixing the result of your problem. Remove the printer specific information from your frx. Use the FRX, and remove the printer specific info from the expr field.
>
>Sir, I am using a third party tool for printing to Dot Matrix printer. It works properly if printing to Windows default printer. But misses sometime otherwise.
>I do have some reports in VFP report writer, for those I could remove the printer info.
>
>That is the reason why I wanted such a solution.

OK, I see. And this third party tool does not give you the option to change printer, or it only works fine when you print to the default printer? If so, I suggest that you try the "good old" Dos command MODE, or if the printer is a network printer you can use NET USE. You can use RUN to call these commands. Not very elegant, but it should do the trick.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform