Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set window default printer ?
Message
From
03/06/2009 03:39:38
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
03/06/2009 03:26:36
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01403342
Message ID:
01403345
Views:
54
It's bad behaviour of an exe to change OS Default Printer.

Instead you need an applikation specific printer

The first idea would be to use simple SYS(1037) to set a printer during apps lifetime.

The next would be to create a default printer that will restore after application start.

This can be done via the additional parameters of SYS(1037). If you have close interest on this I can post a solution.

Agnes
>Hi,
>
>My computer have three printer queues, I want to set the windows default printer in my application.
>I mean not using SET PRINTER TO command.
>I need set the default printer check sign in Start->Printer and Fax.
>
>Please advise.
>
>Derek Yim
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Reply
Map
View

Click here to load this message in the networking platform