Re: Programming for different Word versions
anonymous_at_discussions.microsoft.com
Date: 02/24/05
- Next message: Jay Freedman: "Re: How to find all the selections"
- Previous message: Jay Freedman: "Re: input date from calendar in textbox"
- In reply to: Jezebel: "Re: Programming for different Word versions"
- Next in thread: Howard Kaikow: "Re: Programming for different Word versions"
- Messages sorted by: [ date ] [ thread ]
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
>
>
>.
>
- Next message: Jay Freedman: "Re: How to find all the selections"
- Previous message: Jay Freedman: "Re: input date from calendar in textbox"
- In reply to: Jezebel: "Re: Programming for different Word versions"
- Next in thread: Howard Kaikow: "Re: Programming for different Word versions"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|