在ReportDocument中打印不起作用 [英] Printing is not working in ReportDocument

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

问题描述





我打印报告文件使用



CRDoc.PrintToPrinter(1,True, 1,1)



它正在本地机器上工作。但是当我将文件托管到IIS时,没有任何事情发生。



请帮我

解决方案

你必须明白你的ASP.NET / VB代码是在运行的服务器机器不在客户端!因此,当您将网站发布到实时服务器时,它可能没有任何打印机安装程序,这就是您收到此类错误的原因。同样,您的代码正在尝试打印到安装在服务器而不是客户端的打印机。

如果要将报告打印到客户端打印机,请尝试这些链接提供的解决方案



http://scn.sap.com/thread/2066966



显示,在ASP.NET中导出和打印Crystal Reports



http:// goo .gl / eFSPw



http:// scn。 sap.com/thread/1227795

Hi

I Print the Report Document using

CRDoc.PrintToPrinter(1,True,1,1)

It is working on local machine. But When I host the file to IIS nothing happened.

Pls help me

解决方案

You must understand that your ASP.NET/VB code is running on the server machine not on the client! So, when you publish your website to a live server, it's likely that it does not have any printer installer and that's why you get such error. Again, your code is trying to print to a printer installed at the server not at the client.
If you want to print the report to client printers, then try the solutions provided by these links

http://scn.sap.com/thread/2066966

Displaying , Exporting and Printing Crystal Reports in ASP.NET

http://goo.gl/eFSPw

http://scn.sap.com/thread/1227795


这篇关于在ReportDocument中打印不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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