defaultpageformat reverts to LANDSCAPE if width > height

Trying to set up label printing on a thermal printer. Printing works fine in all other applications, but servoy does the following:

Set Orientation to PORTRAIT

Set width to 2.75"
Set Height to 1.0"

Servoy then reverts orientation to lLANDSCAPE and reverses the w x h:

Set width to 1.00"
Set Height to 2.75"

Why?

Nolan M.
FSCI

I found you can override the default page settings via script and they stick even when width > height in portrait mode.

So, scripting the forms print actions is a necessity if you need to do this.

Set Orientation to PORTRAIT
Set width to 2.75"
Set Height to 1.0"
orientation LANDSCAPE
Set width to 1.00"
Set Height to 2.75"

Should give the same results on the printer

Rob

Wasted over 200 labels testing this…and they don’t give the same result on the two barcode printers I have available (WASP and ZEBRA brands).

Every other application DOES behave as expected. Servoy (via Java 1.5 printing) does not.

The problem is that the dialog “thinks” for you and decides you don’t really want a short fat portrait and changes it to landscape.

But, as noted, the workaround is to place the orientation and paper size via a method - thereby forcing it to comply.

Nolan M.
FSCI