Indexed Properties in Page Header

Stimulsoft Reports.NET discussion
Post Reply
dsdobbins
Posts: 5
Joined: Tue Feb 10, 2009 5:48 pm
Location: US

Indexed Properties in Page Header

Post by dsdobbins »

Hello-

I need to be able to add data values to the Page Header for each page of my report where the values are different for each page.

Ideally I'd like to have a text field that references an indexed property of a business object data source (or a variable). Something like:

Code: Select all

{MyData.MyField[PageNumber]}
I've tried but can't seem to make it work. Is this possible? Is there a better way?

Thanks,
David
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Indexed Properties in Page Header

Post by Edward »

Hi David,

Please add an object type variable in the Dictionary. You can use it for work with arrays. In case if you have MyVariable variable, then the expression might be the following:

Code: Select all

((string[])MyVariable)[IndexOfThePageVariable]
IndexOfThePageVariable must be a variable in the Dictionary. You can count the variable in PageRendering event.

Thank you.
Post Reply