PDA

View Full Version : table preferred width



monikamalik
09-15-2007, 09:42 PM
Hi
I want to read a word document in which tables are incorporated with a preferred width.How can i read that preferred width?

I have tried

nestedTable.PreferredWidthType = Word.WdPreferredWidthType.wdPreferredWidthPercent;
MessageBox.Show(nestedTable.Columns.PreferredWidth.ToString());
int tableW = Convert.ToInt32(nestedTable.PreferredWidth);
MessageBox.Show(tableW.ToString ());

But its not working either way.

Please help.
Ihave to complete this task or my PM will kill me.... :banghead: