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

Changing Page Header dynamically

1 Answer 59 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 20 Jan 2013, 07:18 PM
Greetings

I am currently testing out your reporting product on a trial basis.  One of my requirements is to be able to change the Page Header dynamically (i.e. Company Logo , etc.).  This is a multi-tenet application and I store the company logos in a database.  I can place the logo in the business object I bind to but that see to require that I add the logo to each item in the list of my business object - not very efficient.

I have been trying to figure out a way to pass in the logo as a byte[] parameter of program to the page header but to no avail.  Any suggestions?

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 24 Jan 2013, 12:53 PM
Hello Bill,

You can set the Value of the PictureBox to a file directly and this way you won't have to bind to a binary column. You can set the logo through binding the pictureBox item Value to User Functions using report parameter, which parameter can be changed when passing the report to the ReportViewer.

In short, the report is not aware of your data structure and you can provide data to it in any of the supported ways.

I hope this helps.

All the best,
Stef
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

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