如何在已发布的webApplication客户端计算机中的打印机中打印水晶报表 [英] how to print crystal report in printer in client machine of published webApplication
问题描述
我已经开发了一个Web App.并且我在IIS(服务器)中发布.当我访问已连接打印机的另一台PC上的该Web App时.该报告显示得很好,但是问题在于:
当我按报表上的打印图标时,将弹出1个弹出窗口,当我在此页面上按确定"时,它要求我选择所有页面或选择页面范围,然后以pdf文件格式打开报表,然后单击打印"按钮在pdf上,然后打印出来.
我不希望该用户看到该pdf文件..
我希望当用户单击报告时没有任何更多弹出窗口时,打印应该出现
Hi,
I have developed a web App. and i publshlised in IIS(server). when i go to access that web App on another PC which has connected to printer. the report shows well but the problem is that:
When I press the print icon on the report , 1 pop opens and it asks me to choose all pages or select page range when I press on "Ok" on this page it then opens the report in pdf file and then I click on print button on pdf and then print comes.
I dont want that User shud see the pdf file..
I want that when User click on report then without any further popup the Print should come
推荐答案
尝试本文中提到的PrintToPrinter函数:
在C#中从Crystal Reports打印时选择打印机 [
Try PrintToPrinter function as mentioned in this article:
Choosing a printer when printing from Crystal Reports in C#[^]
<head runat="server">
<script type="text/javascript">
window.print();
</script>
<title>Untitled Page</title>
</head>
只需在具有CrystalReportViewer .....的页面中使用以上代码,它将在客户端计算机上打印
如果报表的字体很小,则增加报表字段的字体...
简单...
just use the above code in the page which has CrystalReportViewer.....it will print on client machine
and if the font size of report is small then increase the font of report fields...
simple...
这篇关于如何在已发布的webApplication客户端计算机中的打印机中打印水晶报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!