Printing from ASP.NET to a network printer

前端 未结 3 1432
醉酒成梦
醉酒成梦 2020-12-01 11:31

I need to send documents to a network printer (\\myserver\\myprinter). I\'m using the System.Printing classes to print, and it works fine when it\'s from a Windows Service,

3条回答
  •  借酒劲吻你
    2020-12-01 12:08

    By default, an ASP.NET application runs on a special account with limited rights. Just enough to serve webpages, nothing more. So you'll have to configure the ASPNET user.

    By contrast Windows services usually run under local System account (with high privileges)

提交回复
热议问题