Results 1 to 6 of 6

Thread: Backward Compatability? (Office 2003/2002)

  1. #1

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Backward Compatability? (Office 2003/2002)

    I have an app that uses Office 2K3.... but a user installing it says it tells her she need a diff ver of office....she has office 2002.. and i have 2003... how can i make this work without her updating?


    EDIT:

    IT said the message said this: The .NET framework installed but then said we needed Office Interop Access version 11.0.0 installed.
    is there a way to include this? or should i have the user download/install it separately?
    Last edited by Static; Dec 5th, 2008 at 10:42 AM.
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  2. #2
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Backward Compatability? (Office 2003/2002)

    You're probably not using late biding when interacting with Office, if you switch your code to use late binded office objects then it'll work with multiple versions of office.
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  3. #3

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Backward Compatability? (Office 2003/2002)

    i hate late binding... such a pain.
    You dont get the nice popups with the available commands. lol

    any other way around this?
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  4. #4
    PowerPoster JuggaloBrotha's Avatar
    Join Date
    Sep 2005
    Location
    Lansing, MI; USA
    Posts
    4,286

    Re: Backward Compatability? (Office 2003/2002)

    None that I know of, but not using late binding means you're binding to a specific interop which means you're setting your program to a specific version of the app (office in this case)
    Currently using VS 2015 Enterprise on Win10 Enterprise x64.

    CodeBank: All ThreadsColors ComboBoxFading & Gradient FormMoveItemListBox/MoveItemListViewMultilineListBoxMenuButtonToolStripCheckBoxStart with Windows

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Backward Compatability? (Office 2003/2002)

    Generally people develop and test their Office app with a reference and early-binding, then just remove the reference and switch to late-binding when they're ready to deploy.

    You should also note that you don't have to allow late-binding project-wide. I was in a situation where I needed to use late-binding once and I set Option Strict On for the project and then I set it Off only in those files that specifically required it. I also created partial classes and set Option Strict Off in only one of them and put only the members that specifically required late-binding in that code file.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Re: Backward Compatability? (Office 2003/2002)

    ok, im stuck on this one part switching to late binding

    I need to import a delim file... the import the data, and delete the file

    AC.DoCmd.TransferText(Access.AcTextTransferType.acLinkDelim, , "NIA_Temp", "C:\NIA_Temp.csv", True)

    ????
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

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