Integration between Nodejs/ElectronJs and Printer Zebra

// Expert user has replied.
E Ezequiel Ramirez 3 years ago
43 1 0

Hi, I am trying to make an integration between a nodeJs/electronJS app and a Printer Zebra gc420t, and i don't know how do that correctly.
I make a label (800x350 px) on html and send to print on a label 8x2.5 cm.
Te problem is the printer print a label correctly but it eject a blank label or a part of the blank label

Please register or login to post a reply

1 Replies

S Steven Si

It sounds like you need to calibrate the printer for the media. Based on the media type, the printer needs to be set to the correct media type that match with the media installed on the printer, i.e. label or journal, with the following SGD commands.

// Check the setting for media type
! U1 getvar "media.type"

// Set to label
! U1 setvar "media.type" "label"

// Set to journal (a.k.a. continuous paper)
! U1 setvar "media.type" "journal"If the media type is set to label, you also need to make sure the sense mode to bar (a black bar on the back of the paper) or gap (a gap between labels) with the following SGD commands.

// Check the setting
! U1 getvar "media.sense_mode"

// Set the sense mode to bar, if black bars are used on the back of the paper.
! U1 setvar "media.sense_mode" "bar"

// Set the sense mode to gap, if white gaps are used between the labels.
! U1 setvar "media.sense_mode" "gap"

Once the above configuration is set, issue the following SGD to do a calibration, so that the printer knows the length of the label.

// Calibrate the media
~JCHope this helps.

CONTACT
Can’t find what you’re looking for?