Re: Programming for different Word versions

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

anonymous_at_discussions.microsoft.com
Date: 02/24/05


Date: Thu, 24 Feb 2005 15:22:22 -0800

Just what I needed, thanks again!

>-----Original Message-----
>First: develop your app for the lowest version of Word
you are prepared to
>deal with. Make sure you have a copy of this library on
your machine, for
>testing purposes.
>
>Second: once you've got your app running and debugged,
switch to late
>binding. Remove the reference to the Word library.
Replace all word type
>declarations with "as object". Instantiate your Word
application using
>CreateObject or GetObject. This way you get whatever
version of Word the
>user has installed. You can use the Version property to
test, eg
>
>Dim wrdApp as object
>Set wrdApp = CreateObject("Word.Application")
>If wrdApp.Version < 9 then
> err.Raise Description:="Can't use this version of
Word..."
>End if
>
>
>
>
>"Ron" <anonymous@discussions.microsoft.com> wrote in
message
>news:009201c51aaa$411dc640$a501280a@phx.gbl...
>> I've developed a VB6.0 application which calls a
>> Word.Application.
>> I need to distribute this to client's with versions of
>> Word different than my development system (i.e. my app
>> references my Word.olb library).
>>
>> Can a reference to a client's word library be added at
>> runtime, or is it possible to install different word
>> libraries on my development computer, so I can
reference
>> the appropriate library and create version-specific
>> applications?
>>
>> Many thanks
>
>
>.
>



Relevant Pages

  • Re: Run 10.20 App on 11.00 ?
    ... installed on both machines using the vendor's install scripts. ... > if the app links in libc.a then you basically up the creek because you have ... Use chatr to see what the dependent libraries are. ... an industrial control system made by Fisher Control Systems. ...
    (comp.sys.hp.hpux)
  • Re: DB not working on other computer
    ... problem is fixed when I install Service Pack 1. ... referenced to regarding libraries and their relationship to projects. ... calculated controls if there are controls that contain expressions" ... > A "Missing" reference means that the files needed for a specific library are ...
    (microsoft.public.access.gettingstarted)
  • Re: Run 10.20 App on 11.00 ?
    ... installed on both machines using the vendor's install scripts. ... the 11.00 libraries in and you core. ... The area were you get into trouble is where you have a 10.20 app that is ... I would take a close look at the install script. ...
    (comp.sys.hp.hpux)
  • ldd/ldconfig problems with Fedora 2 x86_64
    ... to install a pre-compiled 3rd-party ... app is 32-bit and was compiled under RedHat Enterprise 3. ... installing Fedora 2 x86_64 installs many 32-bit libraries, ... as 'ldconfig /usr/lib', rebooted and reinstalled the vendor app. ...
    (comp.os.linux.misc)
  • Re: PDW Fun
    ... So now I am trying to package my app. ... Remove any reference you're not actually using. ... This is one app so why would I add a group or new item? ... PDW's default is most likely to install them in either the application folder or in the System32 folder. ...
    (microsoft.public.vb.general.discussion)