Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2005

Tip: Looking for answers? Try searching our database.

Finding MS Word "word" and "paragraph" Styles

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Trevor Lowing - 12 Mar 2005 13:16 GMT
I'm trying to export a Word document to XML manually (because I need
something more like DocBook XML -but not exactly DocBook).  I think I
have a routine that crawls through the document tree pretty decently
paragraphs, lists, tables ->range.text but I need to identify text
styles and extra attributes for headings, links, bookmarks
bold-italics-superscript-subscript, etc within the paragraph ranges.

One approach I tried was to select the text and "find" the style within
the document and add the XML tagging around the elements (but it forces
me to monkey with modifying the actual document and undoing changes
afterward). I've also tried checking character-by-character
(slooooooow). Any decent ideas?

Signature

---------------------------------
Trevor Lowing
Satellite Beach, Fl

Jezebel - 12 Mar 2005 22:17 GMT
Make sure that the document is formatted strictly using named styles; then
the problem goes away, because the named styles translate into XML tags
directly.

> I'm trying to export a Word document to XML manually (because I need
> something more like DocBook XML -but not exactly DocBook).  I think I have
[quoted text clipped - 8 lines]
> afterward). I've also tried checking character-by-character (slooooooow).
> Any decent ideas?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.