Search code examples
asp.net.netreportingrdlc

printing rdlc using report viewer 10.0.0.0, print button not showing


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.


Solution

  • 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();
    });