Hello,
is there a way to change the record.setText on the fly?
Here is the situation using PHP I get list of customers addresses and values were set in the javascript but how I can remove a customer from the Label set?
For example:
printLabel = function print() {
var printers = dymo.label.framework.getPrinters();
if (printers.length == 0) throw "No DYMO printers are installed. Install DYMO printers.";
var printerName = "";
for (var i = 0; i < printers.length; ++i) {
var printer = printers[i];
if (printer.printerType == "LabelWriterPrinter") {
printerName = printer.name;
break;
}
}
if (printerName == "") throw "No LabelWriter printers found. Install LabelWriter printer";
var printer = printers[printerName];
if (!printer) {
alert("Printer '" + printerName + "' not found");
return;
}
var labelSet = new dymo.label.framework.LabelSetBuilder();
var record = labelSet.addRecord(); record.setText('TEXT', 'LABEL1');
var record = labelSet.addRecord(); record.setText('TEXT', 'LABEL2');
var record = labelSet.addRecord(); record.setText('TEXT', 'LABEL3');
dymo.label.framework.printLabel(printerName, params, labelXml, labelSet);
}
So before I click the print button I would like to remove LABEL2 and print the rest.
If I can put record.setText('TEXT', 'LABEL2'); in different Githubissues.
Githubissues is a development platform for aggregating issues.
Hello, is there a way to change the record.setText on the fly? Here is the situation using PHP I get list of customers addresses and values were set in the javascript but how I can remove a customer from the Label set?
For example:
var record = labelSet.addRecord(); record.setText('TEXT', 'LABEL1'); var record = labelSet.addRecord(); record.setText('TEXT', 'LABEL2'); var record = labelSet.addRecord(); record.setText('TEXT', 'LABEL3'); dymo.label.framework.printLabel(printerName, params, labelXml, labelSet); }
So before I click the print button I would like to remove LABEL2 and print the rest.
If I can put record.setText('TEXT', 'LABEL2'); in different Githubissues.