Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
How to use Printer Control Code?
Versions des environnements
I need to print an barcode into my dos-based printed invoice(that means,printed with @...say commmand).
Because my printer manual said that it provide an couple of control code which can be used to print barcode, I think it is cool,that will remove the complexity on use ActiveX Control or draw bitmap first then print it out.
Yeah, I have checked vfp's help file, and used '???' Command to run these printer control code, like this:
Set Printer on
Set Device to Printer
@5,5 SAY "BarCode Printer test..."
** My printer is OKI 5340C2
** And it's print barcode code is :
** ESC DLE A P1 N1 N2 N3 N4 N5 N6 N7 N8,
×× ESC DLE B P1 PM DATA
??? CHR(27) + CHR(16) + CHR(65) + " 8 4 0 0 3 1 1 0 1"
??? CHR(27) + CHR(16) + CHR(66) + " 24 66" + chr(104) + cBarcodedata
The question is:When the first '???' Command executed, the printer just make an page eject,then do nothing; And there is an print job left in queue and can't go on, Only when i quit vfp, this print job will be remove.
Any suggestion?
thanks!
Suivant
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