Adding a second table to a richtextitem in Lotusscript
Posted on 2006-07-13
I'm trying out those newer (to me anyway) rich text classes they added in R6. In a server agent I am creating a new document, adding a rich text item to it, adding some text, a table, some more text and another table. So far I have it working fine up to the second table. If I don't try to add the second table, I get a nice document with text and a table all formatted as I want it.
I try to add the second table with the following code:
Call reportbody.AppendTable(row, 11)
row holds the value 49.
reportbody is my NotesRichTextItem on my new document.
The error I get when this line of code tries to execute is:
Illegal column width - check Left and Right margins
The first table is defined as Call reportbody.AppendTable(6, 11) and the 11 column width is just fine. I haven't done anything with style properties so anything having to do with margins are all at whatever the defaults are.