在ASP.Net中打印MS图表 [英] Print MS Chart in ASP.Net

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

问题描述

亲爱的所有人,

如何在ASP.Net中打印MS图表.
有人可以给我一些想法吗,我搜寻了很多,但是所有可用的解决方案都是针对Windows应用程序而不是针对Web.

寻找您的宝贵解决方案,

在此先感谢
Supriya

Dear All,

How to print MS Chart in ASP.Net.
Can anybody give me some idea to do so,I searched alot but all solutions available are for windows application not for Web.

Looking for the valuable solutions of yours,

Thanks in advance
Supriya

推荐答案



试试这个..

将图表放置在DIV标签中.
Hi,

try this..

Place Chart in DIV tag.




<script type="text/javascript">
<!--
function printchart(elementId)
{
 var printContent = document.getElementById(elementId);
 var windowUrl = 'about:blank';
 var uniqueName = new Date();
 var windowName = 'Print' + uniqueName.getTime();
 var printWindow = window.open(windowUrl, windowName, 'left=50000,top=50000,width=0,height=0');

 printWindow.document.write(printContent.innerHTML);
 printWindow.document.close();
 printWindow.focus();
 printWindow.print();
 printWindow.close();
}
// -->
</script>





在clientclick事件的打印"按钮中调用此printchart(chartDiv).


问候,
Pal





Call this printchart(chartDiv) in Print Button onclientclick event.


regards,
Pal


在Web应用程序中打印MSChart [通过IE打印ms图表 [ ^ ]
print MSChart in web application[^]

print ms chart through IE[^]


从下面关于同一主题的问答讨论中,您似乎必须使用"iTextSharp"将MS-Chart输出为PDF格式.

http://forums.asp.net/t/1600687.aspx/1
From the below Question-Answer discussion on the same topic, It seems like you will have to output you MS-Chart to PDF format using "iTextSharp".

http://forums.asp.net/t/1600687.aspx/1


这篇关于在ASP.Net中打印MS图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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