Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Escape codes
Message
 
 
À
25/08/1998 17:21:01
Tim Hockin
Illinois State U - Residential Computing
Normal, Illinois, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Divers
Thread ID:
00129879
Message ID:
00129885
Vues:
26
>ok, so I have never used escape codes befroe, lucky me, right?
>
>Now I need to use them, and I can not figure it out. Can someone show me a snippet how they successfully use printer escape codes?
>
>I am trying:
>
>
>
>SET PRINTER TO NAME GETPRINTER()
>
>??? CHR(27) + "E" && Put it in a sane state
>??? CHR(27) + "&l1S" && Turn on duplexing
>
>REPORT FORM rptRateSheet.frx NOEJECT NOCONSOLE TO PRINTER
>
>??? CHR(27) + "E" && Set it sane again.
>
>
>I KNOW this is teh right code. I found it both in teh manual, and in the code for another FP/Dos app that does this successfully..
>
>Help a report newby?
>
>Tim

You may want to put this code into the OnEnter of the Title Band of the report.

Also you may want to test the code without the use of SET PRINTER: make the printer the default, and just execute the code and call the report.

You may want to make sure that the printer you are sending the codes to understands the codes you are sending. (ex You may be sending HP4 codes to an HP2 printer)
Rick Hodder
MCP Visual Foxpro
C#, VB.NET Developer
Independent Consultant
www.RickHodder.com
MyBlog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform