Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing labels on LPT1 from VFP
Message
De
15/02/2012 04:57:25
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
 
 
À
03/02/2012 17:21:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01534430
Message ID:
01535437
Vues:
49
Use Ed Rauh's Dirprtclass class librarry. It's excellent and I use it for direct printing.
>Hi friends
>
>Till now I was printing codebar labels through Clipper with these simple instructions:
>
>SET PRINTER TO (PORT)
>SET DEVI TO PRINT
>? NARCHI
>
>"NARCHI" is a variable that contains a set of particulars commands which cause nice codebar labels are printed.
>
> Now I want to do the same in VFP. Since I have no problems to print other documents on LPT1 I thought this would work
>
>SET CONSOLE OFF
>SET PRINTER TO NAME (ETIQ_PIMP)
>SET PRINTER ON
>SET DEVICE TO PRINT
>
>?? NARCHI
>
>SET PRINTER OFF
>SET CONSOLE ON
>SET DEVICE TO SCREEN
>SET PRINTER TO
>
>But printer prints literal commands
>
>I create a file with the same commands I'm sending to print. If I try to print that file from DOS it prints correctly.
>
>I know I could try to print that file using COPY FILE NARCHI TO LPT1.DOS and it will work but I must considere perhaps a non LPT printer could be used.
>
>Any idea?
>
>Thank you.
>
> Héctor
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform