Solved

Word Ole special Call

Posted on 1997-05-09
4
131 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
Comment Utility
WordBasic := CreateOLEObject('Word.Basic');
.
.
.
WordBasic.EditBookmark('TEMP_BK', TRUE);

This worked for me...

Regards,

Erik.
0
 

Author Comment

by:letourmy
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you very much, your answer was very useful.

Laurent
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Splash screen too shortlived 11 112
Firewall issues 6 84
delphi custom sort exception 6 109
Print Graphic and Text to Epson TM-T88v 12 104
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 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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now