Cannot Send File Contents Directly To Printer 追蹤
Hi,
I have a little bit of an odd situation. I am using BarTender 9.4 on a Windows 2003 server.
I have set commander to trigger on TCP/IP socket. (This works). Commander takes the data from the TCP/IP socket and calls a VBS script which pulls all the data I need to print on the label. It also.....and here is the odd part, reads in a file of ZPL (Zebra) commands and substitutes the fields for the actual values and writes that file out. Unfortunately I have to do it this way as I don't have a .btw file for this. Additionally, this file of ZPL commands is used by our warehouse system, so I had to use it.
My challenge is just getting this file to the printer. I have tried just about everything I can think of. I have tried using command prompt to print /D:\\Server\Printername, but apparently print.exe is not compatible with SMB 2.0 which is on this server. I have tried the copy command to the printer as well as the TYPE command. I have tried creating batch files, etc. Nothing seems to work.
So I am looking for suggestions on what to try.
The file I am trying to send is properly formatted with ZPL. Not sure why I can't get it to print.
Any help would be appreciated.
Thanks!!!
2 意見

Ian Einman
If you have a Seagull driver installed and attached to the printer, those drivers include a command line utility called "SSDAL.EXE" which offers commands that do what you need. You should find this in C:\WINDOWS (normally already in your path).
The following should send a file called "example.zpl" containing raw ZPL to the printer:
ssdal /p "Zebra Z4000 (203 dpi)" send example.zpl
Obviously you'll need to change the printer name to whatever your printer is. It should work with "\\server\printername" as well.
請登入寫評論。