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. COM
  4. office 2003 interop

office 2003 interop

Scheduled Pinned Locked Moved COM
csharpquestioncomannouncement
3 Posts 3 Posters 8 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.
  • D Offline
    D Offline
    DeveloperLife2015
    wrote on last edited by
    #1

    Hi All, I am using office 2007 interop DLL to create an Excel sheet in c#.NET. when I tried to test my app on a machine with office 2003 installed I get an exception because of the version number of the DLL . How can I determine in runtime what version of office is installed and then load the appropriate interop DLL for that version ?

    B 1 Reply Last reply
    0
    • D DeveloperLife2015

      Hi All, I am using office 2007 interop DLL to create an Excel sheet in c#.NET. when I tried to test my app on a machine with office 2003 installed I get an exception because of the version number of the DLL . How can I determine in runtime what version of office is installed and then load the appropriate interop DLL for that version ?

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

      If you do not need features which became available in Office 2007, just use an interop dll for old versions of Office also when current Office is installed! A PIA created with Office XP still works with Office 2010. Otherwise, you have to find out the registry keys of Excel...

      A 1 Reply Last reply
      0
      • B Bernhard Hiller

        If you do not need features which became available in Office 2007, just use an interop dll for old versions of Office also when current Office is installed! A PIA created with Office XP still works with Office 2010. Otherwise, you have to find out the registry keys of Excel...

        A Offline
        A Offline
        AnkitGoel com
        wrote on last edited by
        #3

        Use DLL of office 2000. It may have less features but will work in all versions of office. If u need any extra features then try to avoid it or use a least version satisfying your needs.:thumbsup:

        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