Reply
 
Thread Tools Display Modes
  #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.
  #2   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

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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Merge - graphics - disabling auto update. Randoo Mailmerge 2 April 2nd 22 09:23 PM
How prevent auto style change when backspc/del between pars Andrew B Microsoft Word Help 3 December 13th 06 09:16 PM
disabling auto correct with names containing an apostrophe Bosconian Mailmerge 2 September 15th 06 07:37 AM
how to change auto caption font style Young Microsoft Word Help 1 September 10th 06 12:01 AM
Disabling template help in word Mustang Microsoft Word Help 2 November 10th 05 12:34 AM


All times are GMT +1. The time now is 05:52 AM.

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"