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

Preview for preprinted form but not include in print

1 Answer 38 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 14 May 2013, 12:56 PM
I'm creating a simple label report. The label is preprinted with the logo, address and headers and I'm just filling in the data.

What I would like to do is create the report as it will print, so that when they preview it ,it'll look like it will on the preprinted form (with the logo, address and headers), but don't want the headers and such to print when they actually print.

Is there a way to do this?

1 Answer, 1 is accepted

Sort by
0
IvanY
Telerik team
answered on 17 May 2013, 10:38 AM
Hi Richard,

There is no such functionality that will help you with your task out of the box. However what you can do is hide the default print button of the report viewer and provide your own. Then with code you can print the report programmatically. You will display the regular report to the user so that he can see how it will look on paper. Then when he invokes the print operation you will use the same report, but with headers and items that you need hidden. To achieve this you can use Conditional Formatting for the visibility, which will depend on a hidden bool Report Parameter. Here is more information about the PrintReport method.

All the best,
IvanY
the Telerik team

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

Tags
General Discussions
Asked by
Richard
Top achievements
Rank 1
Answers by
IvanY
Telerik team
Share this question
or