by IDEAL Software Support » Sat Jun 23, 2012 7:37 am
Define all objects within a template as direct or indirect top-margin dependent. Indirect dependent means, objects are dependent to other objects and the topmost object of this dependency chain is top-margin dependent. Best, you set the top margin in the template to zero.
You can either define the page format of the template to be A4 or A5. If using A5, then set <Template>.Master = false in VPE after calling LoadTemplate().
If the top margin in the template is not zero, set the top margin of the VPE document to the value defined in the template with: VPE.nTopMargin = TemplatePage.nTopMargin. Now dump the template the first time into the VPE document. Afterwards set TopMargin = 29.7 / 2 (i.e. half height of A4) + TemplatePage.nTopMargin (if the top margin in the template is not zero) and dump the template a second time.
This way you could also create lists and tables.