how can I get merged table's every cell's rowspan and columnspan?

Z

zq1956

I need to read text from merged table,and redrew it to html.how can I get
merged table's every cell's rowspan and columnspan?
 
Z

zq1956

yeah,the rowspan can be calculate,but through width to get columnspan is not
good work.because sometime the cell.width/table.width could be 1.but I can
sure there is not 1

how can I post the table?
 
K

Klaus Linke

zq1956 said:
yeah,the rowspan can be calculate,but through width to get
columnspan is not good work.because sometime the cell.width/table.width
could be 1.but I can sure there is not 1

how can I post the table?

Not sure I understand you.

I'd put the table in another document, export it to HTML, and look what Word
figures out for the colspan.
Or clean that up if you want to go to HTML anyway.

I'm pretty sure Word keeps track of the colspan internally, but it does not
seem accessible to VBA.

In Word 2003 or 2007, you could also select the table, and get
sTest=Selection.Range.XML

Looking at that also could help get the rowspans and colspans.

Regards,
Klaus
 
Z

zq1956

It works,thx a lots!

zq1956 said:
I just mean sometime the width is 9999999(auto fit),the cell width/table
width will >1.so the method is not ok.

I just try xml,hope it work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top