Dumping a template multiple times into different positions

Knowledge exchange related to dycodoc, the visual form and document designer

Moderator: IDEAL Software Support

Dumping a template multiple times into different positions

Postby scadinot » Thu Apr 23, 2015 4:30 pm

Hello,

I am testing VpeEnterprise before buying a licence.
I need to display a template multiple times in the document with different coordinates.

I tried the following sample.
http://idealsoftware.com/phpBB2/viewtopic.php?f=4&t=113

Code: Select all
            IDEALSoftware.VpeEnterprise.VpeControl vpe = new IDEALSoftware.VpeEnterprise.VpeControl();

            vpe.OpenDoc();

            TVPETemplate template = vpe.LoadTemplate("test2.tpl");
            template.Master = false;

            vpe.nTop = 2.0;
            vpe.nTopMargin = 2.0;
            vpe.DumpTemplate(template);

            vpe.nTop = 4.0;
            vpe.nTopMargin = 4.0;
            vpe.DumpTemplate(template);

            vpe.Preview();


The output displays both templates at the same position.

What's wrong ?

Stephane
scadinot
 
Posts: 2
Joined: Thu Apr 23, 2015 4:15 pm

Re: Dumping a template multiple times into different positio

Postby IDEAL Software Support » Fri Apr 24, 2015 9:03 am

You need to attach at least one object's top coordinate to the top margin (right-click on top handle of the object). Then build a chain of inter-dependencies between all other objects (either top or bottom coordinates).

You can create dependencies, by using the Dependency Editor of the toolbar.
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm

Re: Dumping a template multiple times into different positio

Postby scadinot » Fri Apr 24, 2015 10:17 am

Thank you for your quick response.

It works perfectly.

Stephane.
scadinot
 
Posts: 2
Joined: Thu Apr 23, 2015 4:15 pm


Return to DCD Open Forum

Who is online

Users browsing this forum: No registered users and 3 guests