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

4 posts, 0 answers
  1. Hinata
    Hinata 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. Stef
    Admin
    Stef avatar
    3413 posts

    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. Terry
    Terry avatar
    6 posts
    Member since:
    Oct 2012

    Posted 01 Mar in reply to Stef 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. Stef
    Admin
    Stef avatar
    3413 posts

    Posted 16 Mar 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