Separate Report For Print

2 posts, 0 answers
  1. Majar
    Majar avatar
    14 posts
    Member since:
    Nov 2018

    Posted 18 Apr 2019 Link to this post

    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?

  2. Todor
    Todor avatar
    413 posts

    Posted 22 Apr 2019 Link to this post

    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.

    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
Back to Top