Integration between Nodejs/ElectronJs and Printer Zebra

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

Steven Si
It sounds like you need to

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
~JC

Hope this helps.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Topic locked