从ASP Web应用程序打印到打印机网络

问题描述:

我很难搜索和搜索这个主题。我想用C#开发一个ASP应用程序,用户可以从中打印到任何文件(DOCX.PPTX,XLSX,CAD,PDF,PSD,JPEG,PNG,...所有类型的文件)。我希望用户搜索他要发送的文件进行打印,选择打印是彩色还是黑白,单击打印按钮 - 没有打印对话框 - 并发送到打印机定义为每种情况的默认值。我不知道该如何开始。有人有任何想法吗?

I'm exhausted to search and search about this topic. I want to develop an ASP application with C# from which user print to printer network any file (DOCX. PPTX, XLSX, CAD, PDF, PSD, JPEG, PNG,... all types of files). I want that the user to search your file that he wants to send to print, select if print will be "Colour" or "Black and white", click on a "print" button -without print dialog- and send to printer defined to default for each case. I don't know how to begin. Someone have any idea?

你不会用ASP或ASP.NET应用程序这样做。你所谈论的完全是桌面应用程序,如Windows Forms或WPF。



这是因为ASP.NET代码完全在服务器上运行,而不是客户端。您在那里编写的代码根本无法访问客户端文件,除非它们首先上传到服务器。
You wouldn't do this with an ASP or ASP.NET application. What you're talking about is entirely a desktop application, like Windows Forms or WPF.

This is because ASP.NET code runs entirely on the server, not the client. The code you write there will have no access at all to the clients files unless they are uploaded to the server first.


您是否尝试过此?它似乎完成了你想要做的大部分事情。
Have you tried this? It seems to do most of the things you want to do.