Merge Cells via LS

Did some searches on merging cells within a table but it didnt give back any good results. Does anyone know how? They have some examples of how to build tables in a rtf and how to populate but I want more control.

My goal is to send some results to some users via an agent and have it formatted nice.

Heres what i plan to use to populate it:

Set emaildoc = New NotesDocument(s.CurrentDatabase)

Set rtf = New NotesRichTextItem(emaildoc, "Body")

emaildoc.form = "memo"

emaildoc.subject = "Tech Log Summary"

emaildoc.sendto = "CN/OU/C"

columnCount% = 3

Call rtf.AppendTable(rowCount%, columnCount%)	

Dim rtnav As NotesRichTextNavigator

Set rtnav = rtf.CreateNavigator

Call rtnav.FindFirstElement(RTELEM_TYPE_TABLECELL) 

For iRow% = 1 To 4 Step 1

	For iColumn% = 1 To 3 Step 1

		Call rtf.BeginInsert(rtnav)

		Call rtf.AppendText("Row " & iRow% & ", Column " & iColumn%)

		Call rtf.EndInsert

		Call rtnav.FindNextElement(RTELEM_TYPE_TABLECELL)

	Next

Next

emaildoc.body = soutput

emaildoc.Send False

Subject: RE: Merge Cells via LS

Can’t produce tables with merged cells “from scratch” using the native Notes classes. The Notes C API or the Midas rich text LSX from www.geniisoft.com can do it.

Alternately, the chapter on rich text programmability in this redbook shows how to create the table elsewhere – in a form using Domino Designer or a rich text field using the Notes client – and copy it into your application, replacing the cell contents with your desired data. See page 714.

Subject: Merge Cells via LS

I would write the table in DXL, then import it. There is sample code here, though not for a table. To merge cells, you write tags like: and . Designer Help defines all the tags and has examples. You can make more examples of your own by exporting test documents.