These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

get height of flowed subform?

JGarn23
Registered: Feb 17 2010
Posts: 35

Does anyone know if its possible to get the height of a flowed subform whilst scripting?

If the form is positioned, I can easily show the height using xfa.host.mesageBox(subForm.h);
If it's flowed, the same line gives a height of zero.

Thanks.

radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

if a subform is flowed, it has no property for the height "h" in the XML source, that's why a script only returns "0".

Subform positioned:
<subform y="19.05mm" name="SubForm1" w="196.175mm" h="21.55mm">
Subform flowed:
<subform y="19.05mm" name="SubForm1" w="196.175mm" layout="tb">

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

JGarn23
Registered: Feb 17 2010
Posts: 35
Ah. Good point. Thanks.
Presumably the height is stored somewhere though and accessible at runtime.