Webservice
-
Hi, We got to convert a doc to pdf format for that we installed a printer and the conversion works fine Now the same should be implemented through webservice, so we have sent the name of the file and the printer to the webservice and then print the document however the operation fails! Are there any steps to be taken when implementing the same through webservice? When checked the printer it shows different owner and port when trying to print through web service, is there a way that i can change these settings? Thanks,
gauthee
-
Hi, We got to convert a doc to pdf format for that we installed a printer and the conversion works fine Now the same should be implemented through webservice, so we have sent the name of the file and the printer to the webservice and then print the document however the operation fails! Are there any steps to be taken when implementing the same through webservice? When checked the printer it shows different owner and port when trying to print through web service, is there a way that i can change these settings? Thanks,
gauthee
Maybe you are having a permissions problem? by default, the web service runs as user ASPNET on local machine. Probably that ASPNET doesn't have enough permissions to run the print job. What you could do is make ASPNET impersonate another user who has permissions to print...or you could give ASPNET those permissions. Or am I missing something? Talal
-- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook
-
Maybe you are having a permissions problem? by default, the web service runs as user ASPNET on local machine. Probably that ASPNET doesn't have enough permissions to run the print job. What you could do is make ASPNET impersonate another user who has permissions to print...or you could give ASPNET those permissions. Or am I missing something? Talal
-- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook
-
thanks for the reply talal. all permissions are given, to the printer aspnet is added with full permissions. is there anything else that i missed?
gauthee
hmm, well I don't know. I haven't done that before. How are you printing? Are you calling an application from your web service or is it the web service that is printing (from inside the code)?
-- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook
-
hmm, well I don't know. I haven't done that before. How are you printing? Are you calling an application from your web service or is it the web service that is printing (from inside the code)?
-- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook