使用报表查看器10.0.0.0打印rdlc,不显示打印按钮 [英] printing rdlc using report viewer 10.0.0.0, print button not showing

查看:57
本文介绍了使用报表查看器10.0.0.0打印rdlc,不显示打印按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net项目中有一个rdlc报告.我正在使用报告查看器10.0.0.0来查看和打印报告.除Internet Explorer外,报告查看器的打印按钮均不会显示.

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.

尽管就我而言,打印按钮确实在IE中显示,但按下该按钮时会出现错误无法加载客户端打印控件".我发现报告Report 2008遇到了类​​似的问题,但是安装SP 1之类的解决方案并没有解决我的问题.

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?

请帮助.

推荐答案

您可以添加自己的按钮并将其调整到报表标题,然后使用jquery和javascript从chrome或firefox中打印

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

用于在页面加载时直接打印:

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

要在打印按钮"上进行打印,请点击:

$('.PrintButton').live('click', function() {
    var a = document.getElementById("ReportFrame" + reporviwername).contentWindow;
    a[1].print();
});

这篇关于使用报表查看器10.0.0.0打印rdlc,不显示打印按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆