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. Word compatibility

Word compatibility

Scheduled Pinned Locked Moved C#
csharphelptutorial
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.
  • S Offline
    S Offline
    Spaz80
    wrote on last edited by
    #1

    Hello Im writing a Word application that shall be used on machines with Office 2003 or later versions. On the developer machine I have Office 2007. Im having trouble creating the application so that it works on the test PC witch is using Office 2003. Can anybody help me with a solution on how to use a assembly from Office 2003 in my project... C# :) Thanx Spaz

    S 1 Reply Last reply
    0
    • S Spaz80

      Hello Im writing a Word application that shall be used on machines with Office 2003 or later versions. On the developer machine I have Office 2007. Im having trouble creating the application so that it works on the test PC witch is using Office 2003. Can anybody help me with a solution on how to use a assembly from Office 2003 in my project... C# :) Thanx Spaz

      S Offline
      S Offline
      satsumatable
      wrote on last edited by
      #2

      Hi .Net framework itself provided you with Word library (In reference COM Tab you can see Microsoft Word Object Library) this should help out you to work around Word applications. Thanks

      S 1 Reply Last reply
      0
      • S satsumatable

        Hi .Net framework itself provided you with Word library (In reference COM Tab you can see Microsoft Word Object Library) this should help out you to work around Word applications. Thanks

        S Offline
        S Offline
        Spaz80
        wrote on last edited by
        #3

        Thanks for the reply The Word Library only contain version 12, witch is Office 2007. If I compile my application with that library and deploy it on a machine with Office 2003 I get this error: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) So I need a way to compile my application with Microsoft.Office.Interop.Word, Version=11.0.0.0 Thanx Spaz

        S 1 Reply Last reply
        0
        • S Spaz80

          Thanks for the reply The Word Library only contain version 12, witch is Office 2007. If I compile my application with that library and deploy it on a machine with Office 2003 I get this error: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) So I need a way to compile my application with Microsoft.Office.Interop.Word, Version=11.0.0.0 Thanx Spaz

          S Offline
          S Offline
          satsumatable
          wrote on last edited by
          #4

          OK., when you add the reference into your project you will see some DLLs like WORD VBIDE MICROSOFT.Office.Core While you create setup you need add that library as part your setup and there you will see one DLL called MSO.DDL go to the properties and in Register Property select "vsdrfCOM" and build your setup. This you no need to have any MS Office at your deployment PC. Please let me know if you havve any hiccup. Thanks Siva

          S 1 Reply Last reply
          0
          • S satsumatable

            OK., when you add the reference into your project you will see some DLLs like WORD VBIDE MICROSOFT.Office.Core While you create setup you need add that library as part your setup and there you will see one DLL called MSO.DDL go to the properties and in Register Property select "vsdrfCOM" and build your setup. This you no need to have any MS Office at your deployment PC. Please let me know if you havve any hiccup. Thanks Siva

            S Offline
            S Offline
            Spaz80
            wrote on last edited by
            #5

            Hello Thanx for the help, im a bit in the blue here... I did what you sad, importet the reference, created a new setup project. Changed the setting under register property to "vsdrfCOM". But when I try to run it on the deplyment PC I get this error: "Unable to cast COM object of type 'Microsoft.Office.Interop.Word.ApplicationClass' to interface type 'Microsoft.Office.Interop.Word._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00020970-0000-0000-C000-000000000046}' failed due to the following error: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))" Any ide what could be wrong? Thanx Spaz

            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