Print label on MS Edge

Use this Forum to post your “How to …” questions about your use of aXes. This is not a technical support forum. Both the aXes Support Team at LANSA and other aXes customers may answer your questions. LANSA cannot guarantee the accuracy of any information posted by customers.

Moderator: jeanmichel

Post Reply
rsatoshi
Posts: 1
Joined: 26 Jun 2019, 23:59

Print label on MS Edge

Post by rsatoshi » 27 Jun 2019, 00:26

Hi,

I have a button that prints a label when I click on it. It is working on Google Chrome, but not on Microsoft Edge. On Microsoft Edge, it opens a new window, but the window is blank. On Google Chrome, it opens a new window with the ZPL code (string), and I can print the label without any issue. How can I fix the Microsoft Edge issue?

Below is the button onClick script:

var Item = FIELDS("txtItem").getValue();
var ItemDesc = FIELDS("txtItemDesc").getValue();
var Room = FIELDS("txtRoom").getValue();

var zpl = /* ZPL code as string*/;

var printWindow = window.open();
printWindow.document.open('text/plain');
printWindow.document.write(zpl);
printWindow.document.close();
printWindow.focus();
printWindow.print();
printWindow.close();

Thank you!

Post Reply