pb creating of the cells in a table

N

neonico

Hi everybody!
i am working on mailmerging. I am trying to create cells dynamically in a
table. When I creat my cells in this manner:
for( int i=0; i<4; i++)
{oCells.Add(vtOptional);}
The 3 first cells are created clearly. But the fourth cause the following
error:
"This exceeds the maximum width". How can we solve this problem.
Nico.
 
C

Cindy M -WordMVP-

Hi Neonico,
i am working on mailmerging. I am trying to create cells dynamically in a
table. When I creat my cells in this manner:
for( int i=0; i<4; i++)
{oCells.Add(vtOptional);}
The 3 first cells are created clearly. But the fourth cause the following
error:
"This exceeds the maximum width".
What are the dimensions (rows x cols) of the table, when you begin? And
what should the dimensions be when your code has executed?

Have you tried adding rows, or columns, instead?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
N

neonico

One can't indefinitely create columns! By calling the method setwidth on my
cells, one control the width of the cells and the problem is solved.
 

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