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

How do I determin where my data source is getting data from?

1 Answer 12 Views
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 13 Apr 2018, 07:22 PM

So, we have a TESTenvironment where we test our product, including our Telerik reports. Once a report is deemed production ready, it is moved into our LIVE environment.

I would like to print a "TEST" watermark on reports generated from our TEST environment. Is there a built in way to determine where my data is coming from, or do I need to add a field to my data source that contains this information?

We have many reports, so if there's a built-in function or way to do this, that would save a lot of work.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 16 Apr 2018, 08:28 AM
Hi Joe,

Report does not know where the data is coming from. To display a watermark based on the required condition, I can suggest these approaches:

1. Add watermark at run-time using the provided Reporting API, an example can be found in Watermarks help article. After report was modified, it can be wrapped into InstanceReportSource for passing to report viewers or ReportProcessor.

2. Use expression to set the value of Watermark.Text or Watermark.Image property. Expression can return the value based on the value of report parameter. To update the value of report parameter from the calling application, you can use Parameters collection of ReportSource object.

I hope this information will help.


Regards,
Katia
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Asked by
Joe
Top achievements
Rank 1
Answers by
Katia
Telerik team
Share this question
or