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

hide textbox on print

1 Answer 144 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
PJB
Top achievements
Rank 1
PJB asked on 22 Nov 2010, 02:53 PM
Hi,

I was wondering if it is posible to have a textbox that is visible when viewed through a viewer but is hidden if/when the report is printed off.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 25 Nov 2010, 05:01 PM
Hello PJB,

Generally there is no out of the box solution to hide a textbox when printing. However depending on the viewer in use (Web, WinForms, Silverlight or WPF Report Viewer) we could suggest a workaround based on having two identical reports one with the textbox and one without it and within your application to execute the report without the textbox while printing. 

In order to achieve this you have to make your own custom UI for the printing button and hide the viewers print button. For example if you are using the Web Report Viewer you may find interesting the How to print report on client machine without showing the report help article.

Greetings,
Peter
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
Tags
General Discussions
Asked by
PJB
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or