Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bar Code Printing - Prints in Dbase NOT in Foxpro 6.0
Message
De
17/12/2005 18:47:53
 
 
À
16/12/2005 22:05:24
Freddie Rodrigues
Bitrun Business Solutions
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Database:
Visual FoxPro
Divers
Thread ID:
01078894
Message ID:
01078983
Vues:
14
>Hi,
>
>Following code prints the Bar-Code & related matter without issues in dbase III+. The same code when tried from Visual Foxpro 6.0 does not print.
>
>Bar Code Printer: Argos OS-214.
>Tried setting the proper defaults of printer.
>
>
>
>
>SET PRINTER ON
>SET DEVICE TO PRINTER
>*** * Tried entering this code. Does print but not the required Bar Code.
>* It prints the text within.
>* SET PRINTER TO LPT1***
>@1,0 SAY Chr(2) + "c0000"
>@1,0 SAY Chr(2) + "KI503"
>@1,0 SAY Chr(2) + "O0220"@1,0 SAY Chr(2) + "f221"
>@1,0 SAY Chr(2) + "KW0256"
>@1,0 SAY Chr(2) + "KI7" + Chr(1)
>@1,0 SAY Chr(2) + "V0"
>@1,0 SAY Chr(2) + "L"
>@1,0 SAY Chr(2) + "H12"
>@1,0 SAY Chr(2) + "PC"
>@1,0 SAY Chr(2) + "A2"
>@1,0 SAY Chr(2) + "D11"
>@3,0 SAY Chr(2) + "141100000740070" + "GARMENTS"
>@3,0 SAY Chr(2) + "141100000480088" + ":"
>@3,0 SAY Chr(2) + "131100000390040" + "STYLE"
>@3,0 SAY Chr(2) + "131100000250039" + "M.R.P."
>@3,0 SAY Chr(2) + "131100000560042" + "SIZE"
>@3,0 SAY Chr(2) + "131100000570090" + ":"
>@3,0 SAY Chr(2) + "131100000400090" + ":"
>@3,0 SAY Chr(2) + "131100000510107" + "TY"
>@3,0 SAY Chr(2) + "131100000380107" + "DISCO"
>@3,0 SAY Chr(2) + "131100000220107" + "RS."
>@3,0 SAY Chr(2) + "1e4401600050042" + "B123"
>@3,0 SAY Chr(2) + "232200000850205" + "STYLO"
>@3,0 SAY Chr(2) + "131100000230090" + ":"
>@3,0 SAY Chr(2) + "131100000220132" + "RTY"
>@3,0 SAY Chr(2) + "^01"@3,0 SAY Chr(2) + "Q0001"
>@3,0 SAY Chr(2) + "E"
>SET PRINTER OFF
>SET DEVICE TO SCREEN
>
>
>
>
>Is it related to [set collate] or [codepage]

Is it possible that dBASE III+ is somehow set to send an initialization string to the printer before each print job? If so you will need to send the same string to the printer in VFP.

Failing that you might try various direct-to-queue utilities such as File#9556 (not tried myself)
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform