Results 1 to 4 of 4

Thread: Loading the correct MS Office references depending on the Office version?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Loading the correct MS Office references depending on the Office version?

    Hi,
    I was using Office 2003 with a C# project, and after installing Office 2007 i realized that in the References section of the project, the Office 2003 items were invalid and would no longer work. Is there a way to dynamically add the correct reference?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Hyperactive Member drattansingh's Avatar
    Join Date
    Sep 2005
    Posts
    395

    Re: Loading the correct MS Office references depending on the Office version?

    are you talking about Project -> add reference -> browse tab. which allows you to browse to another reference?

    Or are you talking about from an already created working program?

  3. #3

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: Loading the correct MS Office references depending on the Office version?

    I guess I'm a confused person!
    i was talking about project properties, but it also worried me thinking that i need to have 2 separate versions of hte program for office 2003 and office 2007 (connection strings for different versions of Excel seem different anyways). Let me rephrase the question.

    Is there a way to
    1) determine the MS Office version at runtime to use the correct connection string.
    2) would i need to load the correct version of office references (the one we add to project-> add reference) at runtime? If i already have added Office 2007 references to my project, would my compiled program work fine on a machine running Office 2003?
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  4. #4
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    Re: Loading the correct MS Office references depending on the Office version?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width