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

initialize PictureBox from a parameter

1 Answer 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kassem
Top achievements
Rank 1
Kassem asked on 31 Mar 2013, 08:32 AM
Hello,
i'm trying to initialize a picturebox by passing the image url using a parameter but it won't work.

as i can notice the parameter will be empty if i read it from the Main method of the report.

how can i get it work?


thanks

1 Answer, 1 is accepted

Sort by
0
IvanY
Telerik team
answered on 01 Apr 2013, 10:28 AM
Hello Kassem,

It seems that you are setting the PictureBox using code. A much easier and maintainable approach would be to use a simple expression as value of the PictureBox, like this:
= Parameters.Parameter1.Value

In case you need to do that in code you will have to use ItemDataBinding event and get the processing parameter which will have a value. If you do it earlier in the lifecycle of the report the parameter will have no value (or the default value).

Greetings,
IvanY
the Telerik team

Telerik Reporting Q1 2013 available for download with impressive new visualizations. Download today from your account.

Tags
General Discussions
Asked by
Kassem
Top achievements
Rank 1
Answers by
IvanY
Telerik team
Share this question
or