If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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? |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Identifying Tables And Queries Used in Reporting Code | Alok Joshi | Setting Up & Running Reports | 1 | September 23rd, 2005 09:25 PM |
How to make access import large tables without skipping columns? | cbshoush | General Discussion | 1 | August 12th, 2005 02:28 PM |
query problem with linked SQL tables when importing to new mdb file | Keith G Hicks | Running & Setting Up Queries | 2 | March 22nd, 2005 09:44 PM |
Change From One Large to several relational tables | Jeff C | General Discussion | 4 | January 13th, 2005 11:27 PM |
Multiple Many-To-Many Tables | Tom | Database Design | 7 | May 15th, 2004 03:47 AM |