Extending Microsoft Word with a Delphi application.

Posted on 2005-03-09
Medium Priority
Last Modified: 2013-11-18

Does anyone know how to extend Microsoft word functionality so that I can write a sort of plugin. For instance a plugin that once the user has installed will highlight certain words from a wordlist I create. Or to play sound when a user types a certain word etc,.. I would want this pplugin to load every time a word document is loaded and run certain functions or to sit waiting until specific paterns of text occur.

Question by:mushy_99
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
LVL 46

Accepted Solution

aikimark earned 750 total points
ID: 13502428
Although C# centric, this is a reasonably good start

Helpful tool:

You could create a template (.dot) and include it in the global templates.  However, you would need to do your coding in VBA (not Delphi).

Expert Comment

ID: 13503796

Creating Word AddIns(I did it with VB) can be quite nasty, not because it's difficult, but because of how COM and Word work.
Apart from the links that have been passed to you already, I'd strongly suggest that you play a bit with the Office Type Library,
making an application which calls Word on starting and adds menus/toolbars/etc from it, before getting into Word Plugins.

The former is fairly easy to do, because you can get a reference to Word.Application and through the Office Typelibrary interact with Word directly.

Let us know how things're going.



Author Comment

ID: 13511087
Thanks everyone. The second link above was exactly what I was looking for.


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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses
Course of the Month9 days, 12 hours left to enroll

762 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