Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Word Ole special Call

Posted on 1997-05-09
4
Medium Priority
?
137 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

715 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