Printing under Windows is a whole different animal than printing under DOS. You can still do things the way you're describing (sending PCL escape sequences to the printer) but you'll need to bypass Windows to make it work. Basically you need to write the whole report to an ASCII file, then ??? it to the printer.
The other alternative of course is to convert the report to a real VFP report and set your fonts, page setup, etc. using the VFP report writer.
>When using foxpro 2.6 for dos I could set the printer font by:
>
>??? chr(27)+"(s0p12h4102T"
>
>I am now using visual 6.0 and trying to execute the above line of code and then do a report form.
>
>The font doesn't change. Any suggestions?
>
>I can do it from the command box and it works.
>dan
Rick Borup, MCSD
recursion (rE-kur'-shun) n.
see recursion.