Solved

Word Ole special Call

Posted on 1997-05-09
4
134 Views
Last Modified: 2010-04-06
I want to use bookmars with Delphi 2 / Word 95 using Variants and Ole Automation.
The Word 7 function is :
EditBookmark .Name:="TEMP_BK", .Add

How can I call this from Delphi using a variant (I can not send the .Add function), I tried many things, but I could not do it.

Thanks for help
0
Comment
Question by:letourmy
  • 2
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
sperling earned 100 total points
ID: 1336029
WordBasic := CreateOLEObject('Word.Basic');
.
.
.
WordBasic.EditBookmark('TEMP_BK', TRUE);

This worked for me...

Regards,

Erik.
0
 

Author Comment

by:letourmy
ID: 1336030
Thank you, it works fine but this works to create a bookmark.
How can I go to a specific bookmark ?
0
 
LVL 3

Expert Comment

by:sperling
ID: 1336031
Hmmm... I ain't sure, as I ain't got the english version of word. But you could try EditGoto('NameOfBookmark')

Regards,

Erik.
0
 

Author Comment

by:letourmy
ID: 1336032
Thank you very much, your answer was very useful.

Laurent
0

Featured Post

Industry Leaders: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question