>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.