Results 1 to 11 of 11
  1. #1
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Backward Compatibility (WordXP +/-)

    I'm caught in the middle, running Office XP (a.k.a. 2002 a.k.a.10.0) with a client who is running 2000 and 2003 (a.k.a. 9.0 and 11.0). I am, therefore, stuck in the middle.

    The Word 10.0 application works fine, but when we port it to Word 9.0 it comes unstuck.

    I've read the posts on late-binding as they apply to creating Objects, but here I am stuck with the business of hard-coded paths, visible in the Tools references dialogue, to the version of Word.

    For example, in my Word application I can un-check the reference to Office 10.0 Object library ( the path that refers to ..Office10

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 16 Times in 16 Posts

    Re: Backward Compatibility (WordXP +/-)

    References tend to adjust themselves correctly when going to a newer version, even if the paths are not exactly the same, but not when going to an older version. The best way would be to set up a PC with the oldest version you have to support (Office 2000 in this case), and to prepare the "production" version of your application on this machine.

  4. #3
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Backward Compatibility (WordXP +/-)

    > but not when going to an older version.

    Thanks, Hans. My worst fears .... although I grew up with issues of software NOT being backward compatible. It seems a shame in the case of MSOffice when so much is the same, and newer versions tend to seem incremently different, not major rewrites. Sad that when the "..Office9.." path convention was adopted, it was not applied in a consistent manner.


    .... and then I thought "What have I got to lose?"
    I cranked up my Win98/Office97 system, wrote a small ap that pops up a MsgBox, saved it, rebooted XP, copied the file and ran it under XP. Worked fine.

    Maybe my code is 97 compatible. I can export it via Word 97 and it will migrate comfortably to anything beyond 97.

    That means that in my case I lucked out because I have an older system lying around. Not everyone could fall back on those good-old-days.

  5. #4
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Backward Compatibility (WordXP +/-)

    (several days later).
    My manual procedure is to test the project on my WinXP/OfficeXP machine, and then export the source code (Rob Bovey's Code cleaner) by asking that exported code files NOT be deleted, and by redirecting them to a floppy diskette in drive A:.
    I shut down XP, swap drives to Win98/Office97, load Word, and have been creating a new template by manually choosing File, Import from drive A:.
    This morning I made a crude automated process. It could use some finesse, but it seems to work. It arrives as a single module.bas (called "aagen") and I have attached the source code.
    The general process is <pre> ' SaveAs with new name
    ' Load all modules from a:
    ' Set references
    ' Set project name
    ' Set version
    ' Prompt for password
    </pre>

    Instigated as <pre>Call ProjectBuilder("a:", "IdentiFiler", "Version")</pre>

    I'm interested in a Custom Property "Version" because my GUI form uses that on the GUI form .Caption. My filename includes a version number, e.g. 'Ident106.dot".
    The small macro "GetReferences" generates a useful function holding the current references of the project I wish to port to Office 97.

  6. #5
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Backward Compatibility (WordXP +/-)

    I'm a bit confused as to the issues involved here. In particular, I have several Office 2000 projects on the go, but will soon be converting my own development platform to XP + Office 2003. Can I continue to develop these apps, with their original reference intact (aimed at a target 2000 platform)? That is, will the references be resolved as you describe, when running on my new platform, but remain "hard coded" as they were originally intended (for a target 2000 platform)?

    Alan

  7. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 16 Times in 16 Posts

    Re: Backward Compatibility (WordXP +/-)

    You may run into problems. If you save a file using Office 2003, it'll be saved with the Office 2003 references. You run the risk that an Office 2000 system won't recognize some or all of those.

    It's best to save the final version of a project using Office 2000. You could install Office 2000 and 2003 on your development machine (install 2000 first, then 2003 in another folder), or keep a separate machine with Office 2000.

  8. #7
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Backward Compatibility (WordXP +/-)

    Thanks for the bad news, Hans. <img src=/S/sad.gif border=0 alt=sad width=15 height=15> If I had a list of all the references for the 2000 project, would it be possible to override any 2003 conversions, and save with the original refs, and as a Word 2000 document (if that's an option) do you think?

    Alan

  9. #8
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 16 Times in 16 Posts

    Re: Backward Compatibility (WordXP +/-)

    The file format of Word 97, 2000, 2002 and 2003 is the same. If you save a document or template in Word 2003, it has Office 2003 references, there is no way you can tell it to use Office 2000 references. You'd have to open it on a machine with Office 2000, check all references and correct them if necessary, then save it.

  10. #9
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Backward Compatibility (WordXP +/-)

    OK, thanks Hans. That may not be as bad as I first thought. I could modify and test it on just one machine, then leave it to them to distribute the "retrofitted" version.

    Alan

  11. #10
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Marietta, Georgia, USA
    Posts
    235
    Thanks
    4
    Thanked 2 Times in 2 Posts

    Re: Backward Compatibility (WordXP +/-)

    Edited by HansV to reduce image to 640 x 480

    I have been subject to the same Office 97 / 2000 / 2002 / 2003 compatibility snafus. The only thing that preserved my sanity is VmWare Workstation. I highly recommend this software as a simpler alternative than maintaining multiple PCs, or multiple boot partitions:
    Rick Groszkiewicz
    Life is too short to drink bad wine (or bad coffee!)

  12. #11
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Backward Compatibility (WordXP +/-)

    Thanks Rick. I'll take a look and seriously consider that possibility... if things do go SNAFU.

    Alan

Posting Permissions

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