View Single Post
  #1   Report Post  
Posted to microsoft.public.word.tables
Ram Kumar Karnataka Ram Kumar Karnataka is offline
external usenet poster
 
Posts: 8
Default Change table style in word template(.dot) for disabling Auto resiz

Hello
I'm automating MS Word using C#. This application should support word2000,
2003, 2007 versions.
A custom word template(.dot) is used for creating documents. The problem
here is - some of the tables in the created document are going out of the
page width. I can use word automation to set "table.AllowAutoFit = false;"
but documents can be really huge that it this takes significant time. The
tables in the document come from either html page/another word document.
Please note that i'm not creating table using word
automation(document.tables.Add())!

So i'm looking for an option to modify the table style(for eg., Table Grid)
to uncheck this Auto resize option (Table - Table Properties - Options) in
my word template, so that what ever table is created, it'll have this auto
resize option unchecked. But unfortunately, this option is enabled only when
i select a table.

Is there any way to uncheck this option at the document level rather than
doing it for each table?



Regards,
Ram.