Last post May 22, 2008 04:23 AM by gspandian
May 07, 2008 09:00 AM|gspandian|LINK
I created a windows applicatin which access the windows.drawings..Printing.PrintDocument for printing a document. Whn i tried to run the application it works fine it opens a preview dialog for user. and
my system is in network and netwoek printer is configured in my system. And in my code i didnt give the printer name it automatically opens the printer dialog
And whn i convert this appln to a WINDOW service and the application uses filesystemwatcher, whn a particlular folder has a file it will send to print. And whn i add a file to the watch folder then it thorws exception as
"Settings to access printer '\e058\Printer_Leela_HP9040' are not valid."
i cant access the network printer in my windows service application If i not given the printer name it throws exception as "No printer installed"
how to resolve..
Pandi G S
May 22, 2008 04:23 AM|gspandian|LINK
This issue has been resolved by setting permissions as "User Account" permission then only the network printer is able to identify by the service. This permission is set in the properties of Serviceprocessinstaller control. there
select account type properties as user.