I see to remember having the same problem...I think I printed the report to an ascii file, then issued a
! copy
lpti
command...you get the ugly DOS box for a split second, but it works...of course, if you are trying to print it to somewhere other than LPT1, you will have to change your COPY command...
Joe
>>>We are converting a program from FoxPro 2.6a for DOS to FoxPro 2.6a for Windows. We are experiencing a couple problems. The biggest problem has to do with printed reports. When open up the printer and send the HP LaserJet printer codes, the codes print out rather than being interpreted by the printer. These worked fine under DOS. Does anyone have any ideas?
>>
>>Which way do you send the control codes to the printer? Are you using ??? command?
>
>We use ??? and @ SAY. An example is below. This prints (s0p16.67.h8.5v0s0b0t instead of the line printer font.
>
>m.linedraw = CHR(27) + "11U" + CHR(27) + "(s0p16.67.h8.5v0s0b0t"
>SET PRINTER ON
>??? &linedraw && Line printer font
>
>OR
>
>@ 20, 20 SAY &linedraw && Line printer font
Joseph C. Kempel
Systems Analyst/Programmer
JNC