Link to home
Start Free TrialLog in
Avatar of dr_gonzo
dr_gonzo

asked on

What's the name of the TypeLib for Word

Hi.
About the previous questions about OLE Delphi and Word.

I want to use the _Document interface. What's them name for

Office 97?
Office 4.2?
Avatar of Edo082297
Edo082297

Hi Dr_Gonzo,

   The Pascal translations of the interfaces to all the objects used in Excel or Word are found in the files created by importing MSWORD8.OLB. To import the type libraries, you can select Project | Import Type Library from the Delphi menu, and then select the appropriate type library. A Delphi translation of the type library will be created automatically. (Be sure you are using Delphi 3.01 or later when importing the type library, as some important fixes were made to this technology between Delphi 3.0 and Delphi 3.01.). When working with Office 97, you want one with an OLB extension. The file to use with Word is MSWORD8.OLB. I don't know what the file is for Office 4.2, but try importing those with a TLB or EXE extension. (You can find these entries in the ...\Microsoft Office\Office directory). There will be a number of warnings at the top of the type library, but you can ignore them.
   You can also read the type library with a third party tool, such as the OleView application that ships with the Microsoft SDK.
   
HTH!

Edo
Avatar of dr_gonzo

ASKER

Well well. That was even more than I was asking for, post it as an answer instead and you'll have your points. (Not that it was many but they were my last :-))
ASKER CERTIFIED SOLUTION
Avatar of Edo082297
Edo082297

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I wish to but as I sad, those were my last available points.