system.print.createPrintJob not working correctly after upgrading from 7.9.5 to 7.9.18

Please help!

I am using the createPrintJob to print a window to a label printer using the following code:

pj = system.print.createPrintJob(event.source.parent)

pj.setShowPrintDialog(False)
pj.setPageWidth(6.5)
pj.setPageHeight(3.9)
pj.setOrientation(0)
pj.setPrinterName(prnName)
pj.print()

Before the upgrade, the label looked like this:

Since the upgrade, the only thing that gets printed is the barcode label:

Thanks in advance!

I suspect something else is at play here. I just checked the code and we’ve made no changes to this function since at least 2017.

My guess is the Java version that is running the client has also changed, and that may have something to do with it.

Fonts? (Packaged JRE versus System JRE,perhaps.)

I did notice that the font size on several of the Ignition screens has changed (got larger). I didn’t explicitly update Java when I migrated the gateways.

Since ~7.9.10, native launchers come with their own Java, and use it by default. Try unchecking that to see what you get with the system java.

1 Like

Voila! That worked! Thanks so much for all your help everyone.

1 Like