Page Setup Mind of It's Own

Hi.

I’m working in 3.5.6 and awhile back I had created some forms that we use to print out labels.

All seemed dandy until lately.

If I try to go into a label and modify the defaultPageFormat… whenever I modify the Page Width and/or Page height, the values don’t stick.

For instance… let’s say I have a page width of 1 and height of 2 with an orientation of Landscape.

I try to change to a width of 2 and a height of 1 with a orientation of Portrait.

As soon as I click ok, the Page width and height revert back to their original values. ???

This happens on both Mac and PC Developer.

We didn’t have any issues when we set these layouts up months ago.

Any ideas?

-Chico

Hi Chico,

Do you see the same thing with 3.5.7 (the latest 3.5 release) ?
I tested it with 3.5.7 and the values stick and are visible in the properties panel, even after restarting Developer.
The only thing I see is when I want to edit the values that the dialog doesn’t show my custom values and indeed show the default onces.

Servoy Developer
Version 3.5.7-build 520
Java version 1.5.0_16-133 (Mac OS X 10.5.5)

I get the same behavior in 3.5.7.

I can set the values, but then suddenly the Page Setup window will flip the values and change the orientation to Landscape on its own.

Odd and now all our label printing is screwed up… :(

I think I need to put in a ticket to Servoy.

So it appears to me that if I am using Portrait and if I set the Page Width to be wider than the Page Height… Servoy overrides my settings and changes the values.

Does that happen to anyone else?

I’ve learned that this is the way it works and to override, you need to add:

form.formname.controller.setPageFormat

All is nice now.

Glad you got that working.

The dialog was made to have a “mind of it’s own” so that it is easier to use. It seems it didn’t really work out that way.
You can add a case to the support system and request a more cooperative page setup dialog :).
http://crm.servoy.com/servoy-webclient/ … oy_support