WorkHorse
Sep 12th, 2003, 07:42 PM
Is there a simple way to recreate the Word Document Map? I have a doc with heading styles and I want to capture all the headings into something like a multi-dimensional array so that I can recreate it in something like a treeview in another app. Basiaclly just something that looks like the Document Map, or Outline view, or Table of Contents.
It seems a bit unwieldy to do a search for the main heading styles, then search between those for sub-heading styles, etc. It might be easier to just GoTo each heading and record the text and outline level. But I'm hoping there is something easier. I can't find anything like a "Headings" collection or some such that would just expose all of the heading levels. Any ideas?
It seems a bit unwieldy to do a search for the main heading styles, then search between those for sub-heading styles, etc. It might be easier to just GoTo each heading and record the text and outline level. But I'm hoping there is something easier. I can't find anything like a "Headings" collection or some such that would just expose all of the heading levels. Any ideas?