Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Word Ole special Call

Posted on 1997-05-09
4
Medium Priority
?
138 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 200 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

963 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