Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems printing to an HP LaserJet printer
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00054717
Message ID:
00054906
Views:
31
>>>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

Is it the same HP printer as before?
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform