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. General Programming
  3. C#
  4. Installing Office Interop assemblies on server

Installing Office Interop assemblies on server

Scheduled Pinned Locked Moved C#
questioncomsysadminworkspace
7 Posts 4 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.
  • N Offline
    N Offline
    nitin_ion
    wrote on last edited by
    #1

    My web project is using interop to create word document. It works on my system since i have word installed on my system but Server does not have office installed so How can i install Office.Interop.WOrd assembly on server. Should i just copy the interop dll and register it or is there a setup i have to do?

    Richard DeemingR OriginalGriffO 2 Replies Last reply
    0
    • N nitin_ion

      My web project is using interop to create word document. It works on my system since i have word installed on my system but Server does not have office installed so How can i install Office.Interop.WOrd assembly on server. Should i just copy the interop dll and register it or is there a setup i have to do?

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      Installing the interop assembly on the server won't help. If the server doesn't have Office installed, you can't use Office on the server. Also, using Office interop from an ASP.NET application is not supported, and will most likely fail in interesting ways:

      http://support.microsoft.com/kb/257757[^]

      Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.

      You would do better to use a supported solution, such as the Open XML SDK[^], or DocX[^]. There's even an article introducing DocX here on CodeProject: C#: Create and Manipulate Word Documents Programmatically Using DocX[^]


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      N 1 Reply Last reply
      0
      • N nitin_ion

        My web project is using interop to create word document. It works on my system since i have word installed on my system but Server does not have office installed so How can i install Office.Interop.WOrd assembly on server. Should i just copy the interop dll and register it or is there a setup i have to do?

        OriginalGriffO Offline
        OriginalGriffO Offline
        OriginalGriff
        wrote on last edited by
        #3

        As far as I am aware, you can;t do that - it is a breach of your licencing conditions, unless you purchase a copy of Office to install on the server. And if your server is run by a web hosting company, they might want to be involved in that - and would probably not be happy if you just add copyrighted assemblies to their equipment!

        Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

        N 1 Reply Last reply
        0
        • Richard DeemingR Richard Deeming

          Installing the interop assembly on the server won't help. If the server doesn't have Office installed, you can't use Office on the server. Also, using Office interop from an ASP.NET application is not supported, and will most likely fail in interesting ways:

          http://support.microsoft.com/kb/257757[^]

          Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.

          You would do better to use a supported solution, such as the Open XML SDK[^], or DocX[^]. There's even an article introducing DocX here on CodeProject: C#: Create and Manipulate Word Documents Programmatically Using DocX[^]


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          N Offline
          N Offline
          nitin_ion
          wrote on last edited by
          #4

          but both openxml and docx does not support conversion of word to pdf

          B 1 Reply Last reply
          0
          • OriginalGriffO OriginalGriff

            As far as I am aware, you can;t do that - it is a breach of your licencing conditions, unless you purchase a copy of Office to install on the server. And if your server is run by a web hosting company, they might want to be involved in that - and would probably not be happy if you just add copyrighted assemblies to their equipment!

            Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952) Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)

            N Offline
            N Offline
            nitin_ion
            wrote on last edited by
            #5

            is the a free toolwhich support conversion of word to pdf

            1 Reply Last reply
            0
            • N nitin_ion

              but both openxml and docx does not support conversion of word to pdf

              B Offline
              B Offline
              Bernhard Hiller
              wrote on last edited by
              #6

              So you have an X-Y-problem: you want to do X, think of a way you can solve, get stuck with that way, and now you ask us about that (wrong) way... Ask the correct question!

              N 1 Reply Last reply
              0
              • B Bernhard Hiller

                So you have an X-Y-problem: you want to do X, think of a way you can solve, get stuck with that way, and now you ask us about that (wrong) way... Ask the correct question!

                N Offline
                N Offline
                nitin_ion
                wrote on last edited by
                #7

                yes i was asking the wrong way to do it. I am using iTextSharp for converting HTML to PDF but itextsharp is not converting the CSS in the html. do you have idea how to get around this and have an exact replica in PDF from html using itextsharp

                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