Can you print a Windows test page from the "different pc altogether"?
It will either print pretty small on the label or it will print a lot of
labels, but can you print anything from Windows on the different pc
altogether via the network to the Zebra?
If yes, then how are you trying to actually print to the Zebra?
I have had the best results by building a print string in VFP memory,
then using ??? to send the string to the active printer. Like this:
SET PRINTER TO NAME (thisform.stickerprinter)
lcstring=[^XA]+CHR(13)
lcstring=lcstring+[^CFE]+CHR(13)
lcstring=lcstring+[^LL200]+CHR(13)
lcstring=lcstring+[^FO50,50]+CHR(13)
lcstring=lcstring+[^BCN,100,N,N,N]+CHR(13)
lcstring=lcstring+[^FD]+pcHouse+[^SFdddddddddddd,1^FS]+CHR(13)
lcstring=lcstring+[^FO120,170]+CHR(13)
lcstring=lcstring+[^FD]+dtoc(date())+[^FS]+CHR(13)
lcstring=lcstring+[^PQ]+pcNum2Prn+CHR(13)
lcstring=lcstring+[^XZ]
???lcstring
SET PRINTER TO NAME (thisform.stickerprinter)
You'll probably recognize all the ^X etc. codes as being Zebra-talk.
What I found is that until that final "SET PRINTER TO NAME ...." the
printer doesn't print. Odd, but it works.
Mike Copeland
Sytze de Boer wrote:
After various attempts, this is where I'm at
Printer is set up on an Win7 pc
It is shared.
It is called Zebraprinter
The default printer is a HP laserjet
My application is installed on a Server (V:\)
On this pc, is a file C:\TEMP\ZEBRA.INI
It has 1 line, Zebralabels
In my application, when you print a label, it checks if this file exists
If so, it goes
xprinter=FILETOSTR("C:\TEMP\ZEBRAPRINTER.INI")
SET PRINTER TO NAME (xprinter)
All is well at this point
Now I go to a different pc altogether
I install the zebra printer and access it via 192.168.1.56 (the 1st pc
where it is set up as a shared printer)
No matter what I do, it will not print the label from my application
Even if I set that printer as my default printer
The FRX does not have anything in EXPR, TAG1 or TAG2 fields
Instead of the INI file, I have tried a GETPRINTER() routine immediately
before printing the label
I have tried to embed the Zebra printer in the EXPR field and saved the
printer details.
All to no avail
I have tried this on my own system with the INI file routine.
In my office I have 2 usb printers, a network printer on 192.168.1.25, as
well as a shared printer on my sons's desktop
It prints exactly as I would expect per the ini file.
Sheesh folk. Can anyone help me?
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.