Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Example of using TWordDocument.BuiltInDocumentProperties ?

Status
Not open for further replies.

corsair2

IS-IT--Management
Feb 21, 2001
55
GB
Hi folks

Can anyone offer some help trying to use the above?
I'm trying to count the number of words in a sentence in MS Word and have tried the line below -

wrdcnt := WordDocument1.BuiltInDocumentProperties(wdPropertyWords);

This gives an error "Missing operator or semi-colon" with the insertion point at the start of 'wdPropertyWords".

As you've no doubt guessed I'm a complete tyro at automation. Any advice/pointers would be gratefully accepted.

Regards [elephant2]

Steve
 
I haven't done much with the TWordDocument object, but there's a lot of help on this subject at the Google Borland Delphi OLE Automation group. Maybe you can find something there to help? Sorry I couldn't do more, but at least here's another source of information.

Leslie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top