Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5   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 a lot.

"Cindy M -WordMVP-" wrote:

Hi ?B?QW51cA==?=,

Do we have any other method to find? instead of saving it as HTML and then
processing.

I'm assuming this isn't Word 2003, otherwise you wouldn't have to do a
conversion, you could just pick up the XML direclty...

No, there's not really any RELIABLE way to pick up which cells are merged.
The approach you mention in your first post is the only way. You have to
figure out how many columns/rows the table SHOULD have, then "walk" all the
cells. If a column or row number repeats, then a cell is merged. But things
can get tricky when you try to "walk" the cells, as you can end up repeatedly
in the same cell (endless loop). And the whole thing can only work if you
know which column and which row will NEVER have merged cells so that you can
determine what the total rows and columns for the table should be.

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 :-)




 
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
insert columns after a merged cell in a table Liz Microsoft Word Help 1 November 10th 05 04:57 PM
Pasting text in table results in merged columns... David Tables 0 September 1st 05 11:12 PM
Can I straddle two or more columns or rows in a table? intouch Tables 3 August 25th 05 09:26 PM
Adding columns in table with merged cells Dee Tables 1 March 19th 05 01:18 PM
Can I reorient a table in Word (change the rows to columns)? Suzanne Tables 1 February 25th 05 05:32 AM


All times are GMT +1. The time now is 06:50 PM.

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"