Error “Settings to access printer 'printername' are not valid” when printing from Windows service

后端 未结 2 1235
别跟我提以往
别跟我提以往 2020-12-16 19:46

I get the error mentioned when printing to a network printer.

The error does not occur when run under XP/Win2003, in a WinForm app or when a local printer is used.

2条回答
  •  时光说笑
    2020-12-16 20:02

    Solved by adding the printer to the SYSTEM user via a registry hack as described in the Microsoft doc: http://support.microsoft.com/kb/184291/en-us.

提交回复
热议问题