Print without dialog

Hi,

Windows XP
Testing on Servoy 3.1.4 and Servoy 4.1.0
java.vm.version=11.0-b16

I want to print a form without the java print dialog or OS print dialog.

Under preferences I have unchecked the system print dialog option.

In my method I have set the preferred printer and then set the showprinterselectDialog boolean value to false
controller.setPreferredPrinter(‘Printer ABC’);
controller.print(false,false);

I still get the java print dialog.

How do I disable this so that it can directly go and print at the printer without the dialog to show up?

Any help would be appreciated

jdcunha

This would happen if there is no accessible printer with name ‘Printer ABC’ in the system.
I tried it with same 4.1.0 on WinXP - if the printer is accessible it prints to it, if not it shows the print dialog.