Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Webservice

Webservice

Scheduled Pinned Locked Moved ASP.NET
question
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gauthee
    wrote on last edited by
    #1

    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

    T 1 Reply Last reply
    0
    • G 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

      T Offline
      T Offline
      Talal Sultan
      wrote on last edited by
      #2

      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

      G 1 Reply Last reply
      0
      • T Talal Sultan

        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

        G Offline
        G Offline
        gauthee
        wrote on last edited by
        #3

        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

        T 1 Reply Last reply
        0
        • G gauthee

          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

          T Offline
          T Offline
          Talal Sultan
          wrote on last edited by
          #4

          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

          G 1 Reply Last reply
          0
          • T Talal Sultan

            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

            G Offline
            G Offline
            gauthee
            wrote on last edited by
            #5

            Printing - there is a printer driver installed in the machine i.e. novapdf printer all i do is create a word object and use the print method to print the doc, prior to this i would set the printer as novapdf printer thats it!

            gauthee

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups