Hide certain elements when printing

2 posts, 0 answers
  1. Reg
    Reg avatar
    1 posts
    Member since:
    Jan 2016

    Posted 07 Jun 2016 Link to this post


    I would like to know if it's possible to hide elements when printing.


    I have a report consisting of a table. One of the columns in this table have a link that I do not want to show when printing the report. Is this possible?


  2. Katia
    Katia avatar
    760 posts

    Posted 08 Jun 2016 Link to this post

    Hello Reg,

    Test creating a new report instance and wrap it InstanceReportSource. Inner report items of ReportSource object can be accessed and modified as described in Accessing Report Items Programmatically( Access items from calling application) help article.
    You can also filter out the column based on a boolean report parameter used in the Table>ColumnGroups>Filters. For more details, please check Filter Group members and this post.

    After that the modified report in the InstanceReportSource can be passed to ReportProcessor.PrintReport method for printing a report programmatically.

    I hope this will help.

    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