none
Creating indexing in VSTO word automation RRS feed

Answers

  • I have no idea what you mean by "name fields", however...

    Indexing in Word is done exclusively with XE field codes. There's an interface in the UI for inserting index entries (which generates these field codes). I suggest you first investigate that, as an end-user, and look at the help topics. That will give you an overview of the built-in functionality. Besides being able to insert individual "markers" it's also possible to use a "concordance" - a separate file that Word uses as a key for finding terms and inserting the corresponding entry.

    So, experiment with both approaches and decide which best suits your scenario: inserting individual "markers" or using a concordance. For assistance with using these approaches, please consult the "General Questions" Word newsgroup via that interface. You'll find a link through the "General newsgroups link" given in Please Read First at the top of the forum.

    Then record a VBA macro when performing the actions for the approach you prefer. That will give you the basic objects, methods and parameters you need to build the framework for your solution. At that point, if you have trouble implementing the object model in your VSTO solution, we can help you further
    Cindy Meister, VSTO/Word MVP
    Tuesday, December 2, 2008 10:49 AM
    Moderator