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

2 posts, 0 answers
  1. Joe
    Joe avatar
    15 posts
    Member since:
    May 2016

    Posted 13 Apr 2018 Link to this post

    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.


  2. Katia
    Katia avatar
    760 posts

    Posted 16 Apr 2018 Link to this post

    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.

    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
Back to Top