Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Again, with the escape code - HELP?
Message
De
27/08/1998 09:02:48
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
26/08/1998 13:41:49
Tim Hockin
Illinois State U - Residential Computing
Normal, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00130188
Message ID:
00130462
Vues:
33
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform