Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controlling the printer
Message
 
To
18/06/2001 15:43:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00520697
Message ID:
00520937
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
Rich,

Well, then it is not a VFP question. For Word and Excel documents I used sendkeys method to control the printer (however, most likely the code will differ for different printers.)
See http://support.microsoft.com/support/kb/articles/Q194/3/06.ASP for details.



<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>

>Rich,
>
>As far as I understood, the application works with one printer only.
>
>If so, each report can be set for duplexing separately (in report designer go to File--> Page Setup --> Print Setup -->Properties).
>
>If it is the very same report where you want to change duplexing on the fly, then you can do it when open frx file as a table and change the duplexing flag in the EXP field. Something like this:
>
>*------------------------------
>sele 0
>open repofile.frx
>repl expr with strtran(expr,"DUPLEX=2","DUPLEX=3")
>* or
>*repl expr with strtran(expr,"DUPLEX=3","DUPLEX=2")
>use
>*-----------------
>
>Repofile.frx should not be included into app/exe. Also make sure what duplex codes your HP printer has (they may differ from one model to another).
>
>Hope this'l help.
>
>
Sorry if I didn't make my problem clear enough. There are no FoxPro reports involved. I am printing only Word documents and/or Crystal Report documents. I use CREATEOBJECT(word.application) for the first and a Crystal Report control on the form for the second.

How can I programaticly control which way the printing occurs??

Thanks again for all input........Rich
Previous
Reply
Map
View

Click here to load this message in the networking platform