Closed AzharAbbas10 closed 1 day ago
What format is '/Label1.dymo'
?
What format is '
/Label1.dymo'
? it is Xml First I created in Dymo Connect then I try to print
function loadLabel(printer) {
const labelContent = `
N
A50,50,0,4,1,1,N,"Order ID: 123456"
A50,100,0,4,1,1,N,"Client ID: 78910"
A50,150,0,4,1,1,N,"Order Date: 2024-06-27"
A50,200,0,4,1,1,N,"Fault: None"
A50,250,0,4,1,1,N,"PIN: 1234"
A50,300,0,4,1,1,N,"Auth Reset: Yes"
B50,350,0,1,2,2,100,B,"https://example.com"
P1
`;
const config = qz.configs.create(printer);
// Send the print job using QZ Tray
qz.print(config, [{
type: 'raw',
format: 'plain',
data: labelContent
}]).then(() => {
console.log('Print job sent successfully');
}).catch((err) => {
console.error('Error sending print job:', err);
});
}
I use this code but still not print it show message in console Print job sent successfully
but it not print any thing
Tha appears to be EPL, which the label writer doesn't support.
Please ensure that the data format being sent to your printer is supported. EPL is a Zebra standard. It is emulated by many printer manufacturers, but at time of writing this, I'm unaware of any way to use it with a Dymo printer.
Following is my code