This is a migrated thread and some comments may be shown as answers.

Changing element sizes using ReportItemBase.Bindings

1 Answer 31 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 24 Mar 2010, 10:55 AM
Hi,

I'm trying to resize an element at bind based on properties of the data. I have a barcode object in a group header that is large for the first group and smaller for the subsequent groups. I want to resize the barcode and group header accordingly.

My data is in a DataTable and I have set two columns, for each height containing a Unit.Cm() with the required values. I've put these where I think they should go, in the relevant Bindings section with an expression equal to the columns.

However, at runtime I get a red box containing the error "Bindings error - an error occured while invocing the setter on property 'Height' with valuue '2.5cm'"

Please could you explain what I am doing wrong as there doesn't seem to be much documentation regarding using Bindings to change elements during the Bind events.

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Joe
Top achievements
Rank 1
answered on 24 Mar 2010, 04:01 PM
Hi,

Fixed this, realised that the underlying columns need to be strongly typed. Been a long week
Tags
General Discussions
Asked by
Joe
Top achievements
Rank 1
Answers by
Joe
Top achievements
Rank 1
Share this question
or