Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use Printer Control Code?
Message
De
19/04/2006 12:25:11
F Bilo
Bilo Office
Fuyang, Chine
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
How to use Printer Control Code?
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01114641
Message ID:
01114641
Vues:
72
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
Fil
Voir

Click here to load this message in the networking platform