Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change Windows default printer in Win 98 programatically
Message
From
05/02/2007 06:20:07
 
 
To
05/02/2007 06:09:20
Aman Bains
Jaguar Computers
Jalandhar, India
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows '98
Miscellaneous
Thread ID:
01192320
Message ID:
01192329
Views:
14
>>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform