• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 161
  • Last Modified:

Extending Microsoft Word with a Delphi application.

Hi,

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.

Thanks.
0
mushy_99
Asked:
mushy_99
1 Solution
 
aikimarkCommented:
Although C# centric, this is a reasonably good start
http://www.codeproject.com/csharp/WordAddInPart1.asp?print=true

Helpful tool:
http://www.freedownloadscenter.com/Programming/Misc__Programming_Tools/Add_in_Express_2_VCL_Edition.html

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).
0
 
DeerBearCommented:
Hi.

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.

Cheers,

Andrew
0
 
mushy_99Author Commented:
Thanks everyone. The second link above was exactly what I was looking for.

Paul.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now