Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Controlling the printer
Message
 
To
18/06/2001 14:06:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00520697
Message ID:
00520725
Views:
16
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.


<<<<<<<<<<<<<<<<<<<<<<< your message below >>>>>>>>>>>>>>>>>>>>>>>>>>>>


Hi everyone.......I need some help.

Working in VFP 6.0 I need to print several documents. Some are Word documents and some are Crystal Reports documents. They will be printed on an HP 8100 printer. The printer is attched directly to the computer's LPT1 port.

Each set of documents will need to print multiple times. There is code in place which selects the documents and prints them.

My current problem is controlling the duplexing of the printer. All documents are to print on both sides of the page and I have that part working properly. Out of 5 possible sets of documents, 2 of them need to be printed "Flipped" (turn the document over from the bottom) and three of them are printed "Normal" (turn the document over from the side).

I can get them to print all one way or the other by changing the settings in the print driver. I need to know how to change those settings on the fly. Any information as to what kind of control I could use and how to manipulate that control will be GREATLY appreciated.

Thanks to all.............Rich
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform