objects not visible in printform

i have objects like dataproviders on a printform in the part ‘trailing grand summary’. if their value is null i make the objects not visible (elements..visible = false;) by methode. but that doesn’t works. the objects are always displayed in the printpreview. what’s wrong and how can i make objects visible or not on a printform?
regards

Manipulating elements by method will not work for printing in Servoy 2 (before printing Servoy loads the form “from scratch”, so your changes are gone). So if you are using Servoy 2, that would be no surprise.

thank you patrick!
will that work in servoy v3?

tgs:
will that work in servoy v3?

To quote the Servoy 3.0 release notes:

-printing keeps javascript changes, if an element is dynamically adjust the position/visibility of elements this is also reflected in prints

So it looks like the answer is yes.

Hope this helps.

hi robert!

you are right, this helps. but i have an other special problem with servoy v3. i have posted it there:

http://forum.servoy.com/viewtopic.php?t=7214