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