Information générale
Catégorie:
Codage, syntaxe et commandes
>>>>I am trying to print receipts to a dot matrix printer using VFP 5.0. In DOS, the following code communicated with the printer and allowed me to set page length to 33 lines:
>>>>
>>>>SET DEVICE TO PRINT
>>>>SET PRINT ON
>>>>SET CONSOLE OFF
>>>>
>>>>?? CHR(27) + CHR(67) + CHR(33)
>>>>
>>>>In Windows, I get garbage characters and no change of page length. How am I supposed to send Esc sequences through the Windows driver???
>>>>
>>>>TIA.
>>>>
>>>>John
>John, if you DO need to send direct printer codes, use 3 question marks, not 2
>??? chr(27)+........
>
>Check this in the Help files.
>
>HTH
>Barbara
Barbara:
Once again, you have come to my rescue! I am using @...SAY for my receipts (moving a DOS app into Windows). A receipt doesn't lend itself very well to the Report Generator anyway, so I truly do want to send sequences straight to the printer. Thanks a bunch!!
John
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement