AppendTable method Size Restriction?

I am using the AppendTable method and have run into a problem. If the table size is too big i get a run time error “Illegal column width - Check Left and Right margins”. I am not setting any magin values I am simply using:

Body.AppendTable(x,y)

The error seems to occur when x and y are about 27 and 10. This doesn not seem to be too excessive.

Has anyone any ideas why this may happen, has anyone managed to create a table bigger than this using this method?

Subject: Solved: Initially create a table with only 1 row and use NotesRichtTextTable.AppendRow Method

Subject: AppendTable method Size Restriction?

Your answer of going to the rt formatting stuff certainly fits what’s there in the book but the real question for me is when do you have to do this. There is a table size limit that forces you to using these formatting codes but it’s not based on the number of columns, it’s based on some combination of rows and columns.

I ran a loop for ColCt = 4 to 15 and RowCt = 1 to 50. I found I got errors at the following levels:

43x8 (344 cells)

34x9 (306 cells)

27x10 (270 cells)

22x11 (242 cells)

18x12 (216 cells)

15x13 (195 cells)

13x14 (182 cells)

11x15 (165 cells)

It occurs to me that I shouldn’t need formatting for a simple 8-column table. It may not look good without formatting but why is there a limit at all for something this thin? And why does the limit vary?

Even then, I was hoping to do decent tables with spanned columns and such. That doesn’t seem to be possible. I’m wondering if I’ll just save my time and try pass-thru HTML.

Subject: AppendTable method Size Restriction? Solved It

Applied NotesRichTextParagraphStyles to each of the columns.

see this posting:

http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/9eb541c3b1ad2ccf85256cb4005ae1d8?OpenDocument