报告查看器ASP.Net [英] Report Viewer ASP.Net

查看:103
本文介绍了报告查看器ASP.Net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在aspx中有一个报表查看器,页面底部有一个名为Print的按钮。如果单击打印按钮,它将在我运行页面时打印报告查看器。这可能吗?

我遵循了这篇文章。 http://blogs.msdn.com/b/ brianhartman / archive / 2009/02/27 / manual-printing-a-report.aspx [ ^ ]

I have a report viewer in aspx and at the bottom of the page there is a button named "Print". If I click that "Print" Button, it will print the report viewer when I run the page. Is this possible?
I followed this article. http://blogs.msdn.com/b/brianhartman/archive/2009/02/27/manually-printing-a-report.aspx[^]

推荐答案

你试过这个?



Have you tried this?

<asp:button id="printButton" runat="server" text="Print" onclientclick="javascript:window.print();" xmlns:asp="#unknown" />


对于MS ReportViewer打印... http://forums.asp.net/t/1919085.aspx?ReportViewer+Client+side+printing+using+javascript [ ^ ]
For MS ReportViewer printing... http://forums.asp.net/t/1919085.aspx?ReportViewer+Client+side+printing+using+javascript[^]


转到此页面了解更多信息:



http://www.htmlgoodies.com/beyond/javascript/article.php/3471121 [ ^ ]
Go to this page for more information:

http://www.htmlgoodies.com/beyond/javascript/article.php/3471121[^]


这篇关于报告查看器ASP.Net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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