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

Hide certain elements when printing

1 Answer 156 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Reg
Top achievements
Rank 1
Reg asked on 07 Jun 2016, 08:14 AM

Hi,

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

Scenario:

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?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 08 Jun 2016, 03:30 PM
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.


Regards,
Katia
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
Tags
General Discussions
Asked by
Reg
Top achievements
Rank 1
Answers by
Katia
Telerik team
Share this question
or