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

Separate Report For Print

1 Answer 68 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Majar
Top achievements
Rank 1
Majar asked on 18 Apr 2019, 01:49 PM
Hi,
We have a business requirement where we will have different views for printing and report viewer (web). We're planning to create seperate reports for both views with different names (example : name of the report for the web will be 'ReportWeb' and for print will be 'ReportPrint'. How to call the the report for print when the user clicks the Print button? Or is there any better way to achieve this?

Regards,
Majar

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 22 Apr 2019, 02:48 PM
Hi Majar,

The Print button of the Report Viewer will print the currently displayed report in the viewer. You may use the printBegin(e) event to cancel the default printing (e.g. by setting args.handled to True) and implement your own printing functionality. Printing from the Html5 Viewers is based on downloading the report document in PDF from the REST Service (Printing Reports), hence you may use the REST Service API to generate the required report and download it on the client-side.

You may also use a custom Print button with the approach described in the Print a report directly at client-side without displaying it in a Viewer KB article - modified according to your needs.

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