Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems printing to an HP LaserJet printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00054717
Message ID:
00054729
Vues:
38
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform