Not able to continue table to the next page

S

Shweta

I am using Wprd with VSTO. Through code i have created a table of 4 rows and
4 columns and set following property
Table1.Rows.wrapAroundText = -1;
Still when i start inserting rows in to table through editor it works well.
But when table reaches to the end of the page then instead of continuing to
the
next page it starts inserting rows from the first rows
 
S

Stefan Blom

Wrapped tables was introduced in Word 2000, but the ability for
wrapped tables to continue on the following page was not introduced
until later (in Word 2003, I think). In other words, you may have to
set the WrapAroundText property to FALSE instead.

However, you may also want to try the following: On the Format menu,
click Columns. Click the "One" option, even if it already appears to
be selected, and then click OK.

--
Stefan Blom
Microsoft Word MVP


in message
news:[email protected]...
 
S

Shweta

Hi,

Is there is any way by which i can also apply some positioning to the table
and can continue table to the next page.Because when I select wrap text to
False through the code positioning of the table get disturbed
 
S

Stefan Blom

The best you can do with an "un-wrapped" table is to indent it from
the left margin, or specify it to be right- or center-aligned (on the
Table tab of Table | Table Properties).

--
Stefan Blom
Microsoft Word MVP


in message
 
S

Shweta

Hi,
Thanks for ur suggestions.
I think in word 2003 we can span a wrappes table across the page but i am
not able to do that. Just let me knoe whther we can do that in word 2003 or
not
 
S

Stefan Blom

In Tools | Options, Compatibility tab, is the "Don't break wrapped
tables across pages" selected? If so, clear it.

--
Stefan Blom
Microsoft Word MVP


in message
 
S

Shweta

no its not cheked. I have written following code

Table.AllowPageBreaks = true;
Table.AllowAutoFit = false;
Table.Rows.AllowBreakAcrossPages = -1;
Table.Rows.WrapAroundText = -1;

Table.Rows.HorizontalPosition =
Convert.ToSingle(Word.WdTablePosition.wdTableRight);
summaryTable.Rows.RelativeHorizontalPosition =
Word.WdRelativeHorizontalPosition.wdRelativeHorizontalPositionColumn;
Table.Rows.VerticalPosition = 0;
Table.Rows.RelativeVerticalPosition =
Word.WdRelativeVerticalPosition.wdRelativeVerticalPositionParagraph;
Table.Rows.AllowOverlap = -1;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top