How To Send Raw Zpl Commands To Usb Driver Follow

0
Avatar
Legacy Poster

How can I send raw ZPL commands to a printer via the USB driver from the command line?

7 comments

0
Avatar
Susan Chen
Moderator
Comment actions Permalink

Hi, Mark

If you are using Seagull printer driver http://www.seagullscientific.com/aspx/free-windows-printer-drivers-download.aspx, On Printers and faxes, right click on the Printer-> choose "Properties"-> Tools-> Action->


You can choose to "Send printer command" or "Send print file to printer"

Please use Seagull printer driver with Bartender(http://www.seagullscientific.com/aspx/free-bar-code-label-printing-software-download.aspx) to be eligible to our support.


Thanks!
0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

To send the ZPL file to the printer via automation use the following syntax:

ssdal.exe /p "[i]PrinterName[/i]" send "[i]FilePathAndName[/i]"

Where "PrinterName" is the name of the printer driver and "FilePathAndName" is the path and name of your ZPL print file that you wish to send.

For further information on the command line options enter the below command in a command prompt window:

ssdal.exe /?
0
Avatar
Legacy Poster
Comment actions Permalink

Thanks, that did the trick!
0
Avatar
Legacy Poster
Comment actions Permalink

HELLO, maybe i'm out of time but here are my response.

 

I just add a printer driver (Generic/Text Only), and with this i can send zpl commands to the printer.

 

i hope this response are usefull for something.

0
Avatar
Travis Truax
Comment actions Permalink

Out of curiosity, has this simple functionality been added to the newer generation of Commander (Integration Builder, or whatever it's called now)?

Another option is to send the trigger file contents directly to the to printer via TCP/IP socket, which generally works very well, except (I believe) has at least one downside: Not using a print queue, you will have no bi-directional communication to inform you of whether the label printed or not, and if the printer is offline or something, then I think your label request kinda just goes into oblivion.   

0
Avatar
Ian Cummings
Moderator
Comment actions Permalink

Travis Truax: In an integration that you create with the Integration Builder you could execute a PowerShell script to substantiate an instance of the Printer() class object, and then use that to call the send file method to send already generated print code into a print queue.  Note that PowerShell scripts support the use of integration variables.  See a quick example below:

[void][reflection.assembly]::LoadWithPartialName("Seagull.BarTender.Print")
$printer = New-Object -TypeName Seagull.BarTender.Print.Printer -argumentList "%PrinterName%"
$printer.SendFile("%PrintFileName%", "%PrintJobName%")

0
Avatar
Travis Truax
Comment actions Permalink

Thanks for that bit of knowledge Ian!

Please sign in to leave a comment.