system.print.createPrintJob auto print

image

  1. Script

job
=system.print.createPrintJob(event.source.parent.getComponent(‘PrintLabel’))
job.setPrinterName(‘Argox CP-3140L PPLB’)
job.print()




but if i create a automatically print without notification



it will appear many page
i don’t know how to do this scripting if no reminder , that can print only 1 page.

Are you sure 10.14 inches is correct? If that is centimeters, you need to convert to inches.

1 Like

In addition to your page size, you will need to take a look at margin settings. the default values are 0.75 inches, which doesn’t match the settings in the dialog box.

thanks for your input, after i transfer the data to the inches, it works

image
I have also set the setZoomFactor to 0.5 then it works ok

2 Likes