krishnak
04-20-2007, 02:47 PM
Hi All,
I am working on a Word document generated from DOORS database module. I have to format the document before it is presented to the custormers. Some of the tables in the generated Word document have a single row in two pages, which I want to tidy up. I am using the following expression:
ActiveDocument.Styles("Table Grid").Table.AllowBreakAcrossPage = False
This does not set the problem right. I have the following questions:
1. Does the above code (copied from MSDN Library) apply to all the tables in the document? This does not work for me.
2. Using the normal template of Word, this feature is built in, I expect. Because I have not seen the the contents of a single row spilling over to two pages.
3. Or am I completely off the track?
Please help
- Krishna
I am working on a Word document generated from DOORS database module. I have to format the document before it is presented to the custormers. Some of the tables in the generated Word document have a single row in two pages, which I want to tidy up. I am using the following expression:
ActiveDocument.Styles("Table Grid").Table.AllowBreakAcrossPage = False
This does not set the problem right. I have the following questions:
1. Does the above code (copied from MSDN Library) apply to all the tables in the document? This does not work for me.
2. Using the normal template of Word, this feature is built in, I expect. Because I have not seen the the contents of a single row spilling over to two pages.
3. Or am I completely off the track?
Please help
- Krishna