Get position of DataDefinitions

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

Moderator: IDEAL Software Support

Get position of DataDefinitions

Postby ABlock95 » Thu Mar 19, 2015 2:26 pm

Hi,
How can i Get the position from a DataDefinition ?
ABlock95
 
Posts: 5
Joined: Thu Mar 12, 2015 8:06 am

Re: Get position of DataDefinitions

Postby IDEAL Software Support » Mon Mar 23, 2015 9:08 am

Do you mean the position within a text of a VPE object, where a field is used?

This is not possible. There could be used some workaround, but why would you want to obtain this information?

Beside the visual design, the main use of templates is that fields are merged with text automatically, regardless where - or how often - a field is used.

If this is related to your previous question, how to create a dynamic list by code, you do not need the position of fields within text, you need the coordinates of the objects. These coordinates can be retrieved using VPE.
IDEAL Software Support
 
Posts: 1558
Joined: Thu Nov 18, 2004 4:03 pm

Re: Get position of DataDefinitions

Postby ABlock95 » Wed Mar 25, 2015 9:23 am

Can you give me a code example for delphi please ?
ABlock95
 
Posts: 5
Joined: Thu Mar 12, 2015 8:06 am

Re: Get position of DataDefinitions

Postby IDEAL Software Support » Wed Mar 25, 2015 10:09 am

The vpeedemo source code in the Delphi folder shows how to extract the coordinates from template-objects.

For a simple report, please see the "Speed + Tables" Delphi demo source code of "vpedemo".

Please see also the chapter "dycodoc Template Processing" in the help file titled "Programmer's Manual", as well as the description of the template object in the reference manual.
IDEAL Software Support
 
Posts: 1558
Joined: Thu Nov 18, 2004 4:03 pm


Return to DCD Open Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron