Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.tables
|
|||
|
|||
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. |
#2
Posted to microsoft.public.word.tables
|
|||
|
|||
Change table style in word template(.dot) for disabling Auto resiz
Given below is the reply i got from Cindy Meister:
Please note that i posted her remarks verbatim: "Hi Ram First, please note that this forum mainly supports the VSTO technology, not general "interop". The Please Read First message at the top of the forum gives a brief description, with some links to venues where you can ask non-VSTO, Office-related questions. I recommend you take this discussion to a word.programming newsgroup since you need to support multiple - and older - versions of Word. FWIW, I can tell you that table styles were introduced in Word 2003, so any approach basing on that will not function in Word 2000. So even if table styles supported the option you'd like to use (they do not), it wouldn't be applicable to your scenario. What you're running into is definitely an issue, and I'm not sure there's any "good" way to clean things up. About the only thing that comes to mind would be to force the document into the Normal view, turn off the option for "Background pagination", then manipulate the table structures. With the automatic page layout and pagination disabled to that extent, things might be faster. Beyond that, the specialists in the newsgroups might be able to help. Just don't mention C# or you'll scare them off :-)" "Ram Kumar Karnataka" wrote: 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. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Mail Merge - graphics - disabling auto update. | Mailmerge | |||
How prevent auto style change when backspc/del between pars | Microsoft Word Help | |||
disabling auto correct with names containing an apostrophe | Mailmerge | |||
how to change auto caption font style | Microsoft Word Help | |||
Disabling template help in word | Microsoft Word Help |