General information
Category:
Coding, syntax & commands
>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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only