# Print without dialog

**URL:** <https://forum.servoy.com/t/print-without-dialog/10454>\
**Category:** Classic Servoy\
**Created:** [March 20, 2009, 1:05pm UTC](https://forum.servoy.com/t/print-without-dialog/10454 "2009-03-20T13:05:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdcunha](https://avatars.discourse-cdn.com/v4/letter/j/c5a1d2/32.png) [@jdcunha](https://forum.servoy.com/u/jdcunha)\
**Post date:** [March 20, 2009, 1:05pm UTC](https://forum.servoy.com/t/print-without-dialog/10454/1 "2009-03-20T13:05:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Andrei\_Costescu](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@Andrei\_Costescu](https://forum.servoy.com/u/Andrei_Costescu)\
**Post date:** [March 23, 2009, 8:27am UTC](https://forum.servoy.com/t/print-without-dialog/10454/2 "2009-03-23T08:27:25Z")

</div>

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.
