View Single Post
  #3   Report Post  
Posted to microsoft.public.word.tables
Anup
 
Posts: n/a
Default How to determine the merged columns and rows in a table

Thanks for your kind information.
Do we have any other method to find? instead of saving it as HTML and then
processing.

Anup

"Cindy M -WordMVP-" wrote:

Hi ?B?QW51cA==?=,

I am trying to convert the word table to xml format, for which i am not able
to determine the merged cells to replace with "colspan" and "rowspan"
attributes. I tried with WdInformation.wdEndOfRangeColumnNumber and
WdInformation.wdStartOfRangeColumnNumber, but for all cells the value is the
current column number.

The best way for you to do this would be to save the file to HTML format (as a
webpage) then parse that XML (Word's round-trip HTML). That does contain
colspan and rowspan information. Also, this would probably be a lot faster than
trying to convert a Word document through automation. In principle, you
probably should be able to create a transform to do the job.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
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 :-)