Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Again, with the escape code - HELP?
Message
From
27/08/1998 09:02:48
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
26/08/1998 13:41:49
Tim Hockin
Illinois State U - Residential Computing
Normal, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00130188
Message ID:
00130462
Views:
34
>Summary so far: I have an app that needs to force an HP printer into Duplex mode. I know the escape code to do this. I can't convince it to work.
>
>OK, so I have been playing with it a LOT and here is what I have found:
>
>As soon as I do
>??? CHR(27) + "&l1S" && duplex code
>
>foxpro spools a new job "Foxpro User-Defined Job"
>

Don't use ??? under W95/NT, it creates a separate printjob. You should call a function from within a report field (somewhere in the header) which will look like this:

Func GoDuplex
?? CHR(27) + "&l1S" && duplex code
return ""

It will return an empty string, which will get "printed" within your report, but it will first embed the escape sequence among the other report output. As for the Esc+"E", I think VFP will send it automatically, no need for that.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform