printing rdlc using report viewer 10.0.0.0, print button not showing

10,730

You can add your own button and adjust it to the report header and, using jquery and javascript you can print from chrome or firefox

For direct printing on page load:

$(window).load(function() {
var a = document.getElementById("ReportFrame" + reporviwername).contentWindow;    
    a[1].print();
});

For printing on PrintButton click:

$('.PrintButton').live('click', function() {
    var a = document.getElementById("ReportFrame" + reporviwername).contentWindow;
    a[1].print();
});
Share:
10,730
user1450810
Author by

user1450810

Updated on July 31, 2022

Comments

  • user1450810
    user1450810 over 1 year

    I have an rdlc report in an asp.net project.I’m using report viewer 10.0.0.0 to view and print the report. Except for Internet Explorer the print button of the report viewer does not show.

    Though in my case, print button does show in IE, it gives the error” Unable to load client print control” when it is pressed. I found similar problems reported for report viewer 2008,but the solutions like, installing the SP 1 did not solved my problem.

    Is there a way to enable printing independent of the browser?

    Please Help.