Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing labels on LPT1 from VFP
Message
From
15/02/2012 04:57:25
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
 
 
To
03/02/2012 17:21:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01534430
Message ID:
01535437
Views:
42
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
Previous
Reply
Map
View

Click here to load this message in the networking platform