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

Report Header Binding at Run time

2 Answers 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lou
Top achievements
Rank 1
Lou asked on 25 Nov 2013, 06:40 AM
As a relatively new user to Reporting, I am finally getting the reports to do almost everything I have set out to do... with one exception. I am placing a picture box control on the report header; setting the value to a jpg in a folder; and the report renders correctly.

However, when I change the jpg and then run the application, it still renders the original jpg even though it no longer exists. I am assuming that the jpg has become a resource within the program?? I need a report that will allow the user to supply a new image (with the same name) and have that new image become the source for the picture box on the header.

How do I set the binding at runtime for this property so it will render the current image?

Thank you in advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 27 Nov 2013, 04:09 PM
Hello Lou,

The PictureBox.Value supports expressions thus you can provide your image data from the report datasource or from another source with user function. In order to invoke the Edit Expression dialog, right click the PictureBox item and select the Expression.. option.

Regards,
Peter
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

0
Lou
Top achievements
Rank 1
answered on 28 Nov 2013, 12:06 AM
First of all, thank you. But you've got to be kidding. I thought I had already tried this within my code and had received unresolved errors. However, after looking at your documentation links I figured out that I had not properly resolved the URL!!! Stupid typo, but I learned something more about your software thru this. 

Thank you for  a great product, good documentation (which I need to read more thoroughly, and prompt support!
Tags
General Discussions
Asked by
Lou
Top achievements
Rank 1
Answers by
Peter
Telerik team
Lou
Top achievements
Rank 1
Share this question
or