Groups | Blog | Home
all groups > iis security > january 2005 >

iis security : EnumPrinters in a webservice doesn't work



FredenhagenM
1/5/2005 2:02:51 PM
Hi all,
I'm writing a webservice in delphi 7, which should print attached files on
that server. For that reason I tried to create a jobqueue for every
installed printer. BUT the delphi TPrinter-Object doesn't return any printer
and also a manually call to EnumPrinters returned nothing. The same routine
in a windows-service (also running under the Local System-Account) works
fine, so I assuming that the IWAM_??? -user is the problem. I also checked
http://support.microsoft.com/kb/Q153101 before and all printers appear under
the Default-User account. I'm working on WinXP SP2 and the target is Win2003
Server with IIS6.
Any hints,

thanks in advanced

Mario

FredenhagenM
1/5/2005 3:08:50 PM
I've found the missing piece for that problem through try and error :)
The solution is to enable sharing for the printers!

Mario

[quoted text, click to view]

AddThis Social Bookmark Button