在ASP.NET中使用DocumentPrint [英] Using DocumentPrint in ASP.NET

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

问题描述

亲爱的,

我制作了一个小型Web应用程序(ASP.NET),该应用程序使用DocumentPrint.Print()来使用连接在服务器上的打印机,并在Visual Studio中运行该打印机时,它的工作正常并可以正确打印文档,提示:地址将是:http://localhost:8080/,但是当使用iis服务器(http://localhost/TestPrintingWebSite)时,打印机永远无法工作,然后网站对服务器打印机没有影响.

iis上必须有任何设置才能使我能够使用服务器打印机吗?

请您的帮助;)

感谢很多

Dears,

I made a small web application (ASP.NET) that use the DocumentPrint.Print() to use a printer that connected on the server and when run it from the visual studio its work well and print the document correctly, Hint : the address will be : http://localhost:8080/ but when use the iis server (http://localhost/TestPrintingWebSite) the printer never work and then the website didnt effect to the server printer.

is there any setting must be on the iis to let me able to use the server printer ???

please your help guys ;)

thanks alot

推荐答案

6天前,您在这里提出了相同的问题:
http://stackoverflow.com/questions/6973535/using-documentprint-in-asp-net [ ^ ]

我想给你的答案和你到那里的一样.

如果您在理解模仿时遇到问题,那么您应该询问您在理解模仿时遇到的任何问题.

以下是有关代码项目的一些有关模拟的文章:
C#.NET中的完整模拟演示 [回到基础– ASP.NET运行时模拟 [ ^ ]
用于模拟用户的小型C#类 [
6 days ago you asked the same question here:
http://stackoverflow.com/questions/6973535/using-documentprint-in-asp-net[^]

And the answer I would give you is the same you got there.

If you have problems understanding impersonation, then you should ask about whatever your problem you have understanding impersonation.

Here is some articles on The Code Project which discusses impersonation:
A Complete Impersonation Demo in C#.NET[^]
Back to Basic – ASP.NET Runtime Impersonation[^]
A small C# Class for impersonating a User[^]


这篇关于在ASP.NET中使用DocumentPrint的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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