A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Error processing large tables



 
 
Thread Tools Display Modes
  #1  
Old November 13th, 2005, 01:34 AM
PromisedOyster
external usenet poster
 
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?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 12:19 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.