Get properties for objects on data band

edited 1:24AM in FastReport .NET
I have to find a solution for the following problem:
Let's assume we have a report with a DataBand which is connected to a query of a database connection returning multiple records. A Textobject positioned 1 cm from the top and 1 cm from the left is placed on the DataBand. When one prepares/previews the report, we will have a Textobject for every record from the query because the DataBand will be repeated on the generated report for every record. When I print the text object's absolute positions (for example using the event AfterData), it will be the same for every record (1 cm from the top, 1 cm from the left) which is clearly not the Textobject's position on the page (for example, the Textobject for the second record will appear after the data band for the first record and so on).

I prepare the report programmatically this way:

Report report = new Report();
report.Load(someReportPath);
report.Prepare();

After that, I can access the property AllObject: report.AllObjects which also shows the one Textobject. But so far, I couldn't find anything that could give me information concerning the databands' objects for every single record. Is it even possible to access these information?


What I need is the exact position for every object in every DataBand because after the report generation, I have to create objects around these Textobjects. For that I need the actual absolute position on the page and not the position relative to the DataBand.


Example:
Height of the DataBand is 4.

Pageno 1:
Start DataBand for Record1

Textobject: Position: Top = 1, Left = 1

End DataBand for Record1

Start DataBand for Record2----

Textobject: Position: Top = 1, Left = 1, but what I would like is a property that shows Top = 5 as that will be the position on the page

End DataBand for Record2


Of course, I could try to calculate it myself using the amount of the preceding records, but that could only work if I take into account all the other components and areas of the report (groupheader,, footer...).

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.