Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 213
  • Last Modified:

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?
0
dr_gonzo
Asked:
dr_gonzo
  • 2
  • 2
1 Solution
 
Edo082297Commented:
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
0
 
dr_gonzoAuthor Commented:
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 :-))
0
 
Edo082297Commented:
Thanks, Dr_Gonzo. If you want to give me more, I won't complain!!!  ;-)

Edo
0
 
dr_gonzoAuthor Commented:
I wish to but as I sad, those were my last available points.

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now