在服务器上找不到打印机,Crystal报告c# [英] No Printer found on server , Crystal report c#

查看:251
本文介绍了在服务器上找不到打印机,Crystal报告c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用水晶报告的 PrintToPrinter 打印选定的页面范围时,它在我的本地计算机上工作得很好,但是当我在服务器上重新部署该代码时,它会给出错误没有打印机安装因为服务器上没有安装打印机。



我想按页面范围客户端打印,因此打印将在客户端系统上完成,而不是在服务器端。



是否有任何代码或方法打印水晶报告客户端?

When i am using PrintToPrinter of a crystal reports for printing of a selected page range it works perfect in my local computer, But when i delploy that code on server than it is giving error "No printer installed" because there are no installed printers on server.

I want to print by page range client side so printing will be done on client's system not on server side.

Is there any code or a method to print crystal reports client side ?

推荐答案

只要你从代码进行打印,而不是用户交互,你别无选择......

你用来打印的代码在服务器上运行!所以它在服务器上查找打印机,什么也没找到......

要让Crystal Report在客户端的机器上打印,首先必须通过浏览器向客户端显示报告然后你可以使用一些JavaScript代码打印报告(半自动)或让最终用户选择打印的内容和时间!
As long as you do the printing from code, and not as user interaction, you have no choice...
The code you use to print is running in the server! so it looks for the printer on the server, and finds nothing...
To let Crystal Report to print on the client's machine you first have to present the report to the client via the browser and then you may use some JavaScript code to print the report (half-automatic) or let the end user to choose what and when to print!


这篇关于在服务器上找不到打印机,Crystal报告c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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