Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting PCL code to an HP5 priinter
Message
From
15/06/2005 22:03:09
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01023736
Message ID:
01023778
Views:
13
>I tried the following:
>strtofile(chr(27)+'%-12345X@PJL RDYMSG DISPLAY="MESSAGE HERE"',"hpDisplay.txt")
>!copy /b hpDisplay.txt \\server\printer
>
>and also tried with doing a net use lpt1 \\server\printer and then
>
>!copy /b hpDisplay.txt lpt1
>
>Neither one got the display on the printer to change.
>Anyone know what I am doing wrong?

I never was able to get copy to work for this under Windows, so I do this:
SET PRINT ON
hFile = FOPEN("BARCODE.CAP")
DO WHILE !FEOF(hFile)
  ??? FREAD(hFile,50)
ENDDO
=FCLOSE(hFile)
Or in your case:
SET PRINT ON
??? chr(27)+'%-12345X@PJL RDYMSG DISPLAY="MESSAGE HERE"'
But all that does on my laserjets is cause a page eject. I don't have a copy of the JCL commands, so can't say why.
Previous
Reply
Map
View

Click here to load this message in the networking platform