问题描述
我的Web服务器上托管了一个Web应用程序,可以通过INTERNET访问。
有几页使用Crystal Report对象,并且基于在运行时进行操作的值。我希望通过安装在客户端计算机上的打印机实现直接打印功能。
我知道不允许访问本地资源但我正在寻找任何解决方案如果有可能的话。
任何人都可以分享他们有什么解决方案吗?
我尝试了什么:
我知道它可以通过ActiveX实现,但直到某些扩展并且只能在IE上使用。
但我不想使用ActiveX,因为所有操作都是在我的C#代码上完成的,将完整的数据结构发送到客户端非常复杂。
Hi,
I have a Web Application hosted on my Web Server and can accessed with INTERNET.
There are couple of pages which are uses Crystal Report object and based on the values the manipulation is done at run time. I wanted a facility of DIRECT PRINTING through the Printer installed on the client machines.
I know that it is not allowed to access the local resources but i am looking any solution if there is any possibility.
Can anyone please share if any solution they have?
What I have tried:
I know that it can be possible through ActiveX but till some extends and only on IE.
But i do not want to use ActiveX because all the manipulation is done on my C# code and it is very complex to send the complete structure with data to the client.
推荐答案
我知道不允许访问本地资源
I know that it is not allowed to access the local resources
你已经知道了答案。
想象一下,你登录一个网站,你的打印机开始无休止地打印。
这是任何恶意软件的梦想功能。
You already know the answer.
Just imagine, you log to a website and your printer start to print endlessly.
It's a dream feature for any malware.
这篇关于Asp.net - 在客户端直接打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!