Reply
 
Thread Tools Display Modes
  #1   Report Post  
PromisedOyster
 
Posts: n/a
Default Error processing large tables

We are using Word Automation within a C#/WinFroms application.

One of the things that this program does is set the alignment of all
columns in a table.

The code snippet is as follows.


for (int column = 1; column columns + 1; column++)
{
Word.WdParagraphAlignment alignment =
(Word.WdParagraphAlignment)alignments[column-1];
for (int row = fieldRow; row table.Rows.Count + 1; row++)
{
table.Cell(row, column).Range.ParagraphFormat.Alignment =
alignment;
}
}


This works very well. However, if there are a large number of rows in
the table, eg 500 then setting the alignment does not work for all
rows. It appears to do so many and then stop. The number of rows it
processes can vary from one time to another.

Any ideas on how to workaround this issue?

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
Correct layout of large pictures / tables Jens Meier Formatting Long Documents 1 November 22nd 05 10:21 AM
Correct layout of large pictures / tables Jens Meier Page Layout 0 November 6th 05 06:28 PM
Changing format of multiple pre-created tables Wendy Microsoft Word Help 2 September 14th 05 08:55 AM
When joining tables, table sections shift left or right. JEB01 Tables 1 January 17th 05 07:57 PM
Is there a way to "join" tables in Word 2003? Julian Turner Tables 3 October 28th 04 06:51 PM


All times are GMT +1. The time now is 11:26 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"