Salut
Non je ne l'ai pas essayé.
Regarde dnas Options, références... Il doit y avoir des référence pour Lotus Note.
Dans ce bout de code j'ai surtout repéré ça
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| Set body = doc.CreateRichTextItem("Body")
Set style = session.CreateRichTextStyle
Set color = session.CreateColorObject
Call body.AppendText("This is some text before the section")
Call body.AddNewline(2)
Call body.BeginSection("Expanded Section", style, color, True)
Call body.AppendText("Here is some text within the section")
Call body.AddNewline(2)
Call body.AppendText("Here is some more text within the section")
Call body.EndSection
Call body.AddNewline(2)
Call body.AppendText("This is some text between the two sections")
Call body.AddNewline(2)
Call body.BeginSection("Collapsed Section")
Call body.AppendText("Here is some text within the section")
Call body.AddNewline(2)
Call body.AppendText("Here is some more text within the section")
Call body.EndSection
Call body.AddNewline(2)
Call body.AppendText("This is some text after the section") |
La déclaration de la variable body correspondant pour toi a la déclaration de
Set rtitem = objNotesMailDoc.CREATERICHTEXTITEM("Body")
Sauf que tu n'as pas activé les références Lotus et que tu as du faire des déclaration "Object", montre l’intégralité de ton code avec les déclaration de variable.
++
Qwaz
Partager