Print a report directly at client-side without displaying it in an ASP.NET ReportViewer

Thread is closed for posting
4 posts, 0 answers
  1. BE58744F-A632-4C03-8446-1651CC58B494
    BE58744F-A632-4C03-8446-1651CC58B494 avatar
    146 posts
    Member since:
    Dec 2013

    Posted 14 Dec 2013 Link to this post

    Requirements

    Telerik Reporting version Q3 2013+
    .NET version 4.0+
    Visual Studio version VS 2012 Professional +
    programming language C#
    To convert code

    Telerik online converter


    PROJECT DESCRIPTION

    With this code it is possible to print a report directly at client-side without displaying it in an ASP.NET ReportViewer.
    This is possible due to including the following JavaScript which will invoke the PDF object's print method and send the document to the default printer. With the setting below there will be required user interaction by showing a print dialog, and the document is shrunk to fit the imageable area of the pages:
    deviceInfo["JavaScript"] = "this.print({bUI: true, bSilent: false, bShrinkToFit: true});";
        

  2. 3D78FABF-3604-4921-AD8D-930AB537F0F8
    3D78FABF-3604-4921-AD8D-930AB537F0F8 avatar
    3610 posts
    Member since:
    Jul 2017

    Posted 05 Apr 2016 Link to this post

    Hello everyone,

    New KB article with more examples - Print a report directly at client-side without displaying it in a Viewer.

    Regards,
    Stef
    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
  3. 3A3871D5-AE80-49DE-B951-8DDCAB23BD0D
    3A3871D5-AE80-49DE-B951-8DDCAB23BD0D avatar
    14 posts
    Member since:
    Oct 2012

    Posted 01 Mar 2017 in reply to 3D78FABF-3604-4921-AD8D-930AB537F0F8 Link to this post

    Hi Stef,

    I have a web forms application and I need this exact functionality. I noticed that the web forms file posted is in VB. Can you please provide a c# version of the file. Also, I need to pass a parameter to the report that is derived through a querystring. How would I do that?

    Thank you for your help Stef,

    Terry

  4. 3D78FABF-3604-4921-AD8D-930AB537F0F8
    3D78FABF-3604-4921-AD8D-930AB537F0F8 avatar
    3610 posts
    Member since:
    Jul 2017

    Posted 16 Mar 2017 Link to this post

    Hello Terry,

    Please check the KB article linked in my previous post. The article has two examples written in C# and VB.NET.
    If you need further technical help, please use the support ticketing system or Telerik Reporting public forum.

    Regards,
    Stef
    Telerik by Progress
    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

This Code Library is part of the product documentation and subject to the respective product license agreement.