Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.vb,microsoft.public.word.tables,microsoft.public.word
TheEwook TheEwook is offline
external usenet poster
 
Posts: 1
Default Parse Word document into XML

Hi,

I use the Microsoft Word 11.0 Object Library (MSWORD.OLB) to parse a
MSWord document into a XML document.

My problem is how to know in a table that a cell is merge ? And if this
cell is merge how to know which cells are merge ?
In my XML document I use colspan and rowspan in TD/TR for merge
cells.



Thanks !!!

  #2   Report Post  
Posted to microsoft.public.vb,microsoft.public.word.tables,microsoft.public.word
Cindy M. Cindy M. is offline
external usenet poster
 
Posts: 2,416
Default Parse Word document into XML

Hi TheEwook,

I use the Microsoft Word 11.0 Object Library (MSWORD.OLB) to parse a
MSWord document into a XML document.

My problem is how to know in a table that a cell is merge ? And if this
cell is merge how to know which cells are merge ?
In my XML document I use colspan and rowspan in TD/TR for merge
cells.

I recommend you use the XML property to get the WordProcessingML, then
transform that into your own XML. There's no really good way, using
Word's object model, to determine whether a Word table contains merged
cells, and in what way they're merged relative to the other cells in the
table. But the round-trip HTML and the WordProcessingML do contain this
information.

An alternative would be to copy just the table to another document, save
it as a "web page", then extract the HTML from that.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word should catalog misspelled words to study. rndthought Microsoft Word Help 39 May 21st 23 02:47 AM
Reveal codes in a word document FUN101 Microsoft Word Help 4 May 16th 23 08:47 PM
take yet another lesson from wordperfect "reveal codes" wordperfect is superior Microsoft Word Help 5 May 11th 09 07:58 PM
I am having difficulty with deleting headers and footers LHD New Users 5 July 24th 06 01:44 AM
How to reformat a complete document. wanda Microsoft Word Help 16 February 12th 06 12:43 AM


All times are GMT +1. The time now is 06:17 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"