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

Report background

4 Answers 168 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
siva sankar
Top achievements
Rank 1
siva sankar asked on 06 Aug 2011, 11:32 AM

 I want to apply a watermark type image on the report but want to change it dependant on the state of the document content i.e. if i had a Perameter that returned a string of "Draft" i would want to apply the Draft image to the whole report likewise if the function returned "Approved" i would want to apply the Approved image instead?

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 09 Aug 2011, 03:40 PM
Hi Siva Sankar,

In order to conditionally set the report's background image our suggestion is to use a binding and user function as shown in the following example:

Property Path  Expression 
 Style.BackgroundImage.ImageData =GetImageUserFunction(Parameters.Parameter1.Value)

Kind regards,
Peter
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
siva sankar
Top achievements
Rank 1
answered on 10 Aug 2011, 06:58 AM
Thank you for your valuble answer, one more question, iam using table wizard in a report, when table has no data how to show a message("No Data To Display") in the table.
0
Steve
Telerik team
answered on 10 Aug 2011, 02:39 PM
Hello Siva,

Currently there is no out of the box solution to show a "No records found" message when there is no data. However we have this feature logged our Feature Tracking System and we will introduce the new option with a subsequent version of Telerik Reporting.

In the meantime there is a workaround you can use instead. Just add a TextBox item within the report and set its value to "No Data Found" and its Visibility dependent on the Table visibility. To hide the Table when the datasource returns no data, add a Binding for a table "header" Textbox:

 Property Path Expression 
 Parent.Visible  =IIF(Count(1)>0, True, False)

Kind regards,
Steve
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

0
arellano
Top achievements
Rank 1
answered on 11 Aug 2011, 12:15 AM
hello my friend....I've tried but the problem is that my image does not visualize in the report telerik  data if shown, and the path where it should not be loaded  .. not if telerik reporting a problem or not,, you can help me
Tags
General Discussions
Asked by
siva sankar
Top achievements
Rank 1
Answers by
Peter
Telerik team
siva sankar
Top achievements
Rank 1
Steve
Telerik team
arellano
Top achievements
Rank 1
Share this question
or