Hello All,
After some digging I have come to the conclusion I yet again need assistance. I have a vb app that generates an email using the lotus notes object. I am attempting to write multiple lines to the body of the text with no avail. I have tried VBCrLf. Tried VBNewLine. Tried Chr(13) & Chr(10)(Which I believe to be the same as VBCrLf). No luck, still creates 1 long string with square boxes between the lines. Like I mentioned, I have searched on this forum and cannot find the solution, however, it was here where I found the code to connect to Lotus in the first place (Thank you all for those threads). Any help will be appreciated.
Matt
(Code)
Dim lotSession As Domino.NotesSession
Dim lotDocument As Domino.NotesDocument
Dim lotDatabase As Domino.NotesDatabase
Dim vRecipients As Variant
Set lotSession = New Domino.NotesSession
With lotSession
.Initialize "mypassword"
End With
Set lotDatabase = _
lotSession.GetDbDirectory("xxx"
.OpenMailDatabase
With lotDatabase
If Not .IsOpen Then
.Open
End If
End With
vRecipients = Array(strMail) 'To
Set lotDocument = lotDatabase.CreateDocument()
With lotDocument
.AppendItemValue "Form", "Memo"
.AppendItemValue "Subject", "This is a test"
.AppendItemValue "Body", & _
"This is the two Line Issue" & VBCrLf & _
"This text Should appear below the prior, but doesn't"
.Send False, vRecipients
Call .Save(True, False)'Save to Sent
End With
Set lotDocument = Nothing
Set lotDatabase = Nothing
Set lotSession = Nothing
After some digging I have come to the conclusion I yet again need assistance. I have a vb app that generates an email using the lotus notes object. I am attempting to write multiple lines to the body of the text with no avail. I have tried VBCrLf. Tried VBNewLine. Tried Chr(13) & Chr(10)(Which I believe to be the same as VBCrLf). No luck, still creates 1 long string with square boxes between the lines. Like I mentioned, I have searched on this forum and cannot find the solution, however, it was here where I found the code to connect to Lotus in the first place (Thank you all for those threads). Any help will be appreciated.
Matt
(Code)
Dim lotSession As Domino.NotesSession
Dim lotDocument As Domino.NotesDocument
Dim lotDatabase As Domino.NotesDatabase
Dim vRecipients As Variant
Set lotSession = New Domino.NotesSession
With lotSession
.Initialize "mypassword"
End With
Set lotDatabase = _
lotSession.GetDbDirectory("xxx"
With lotDatabase
If Not .IsOpen Then
.Open
End If
End With
vRecipients = Array(strMail) 'To
Set lotDocument = lotDatabase.CreateDocument()
With lotDocument
.AppendItemValue "Form", "Memo"
.AppendItemValue "Subject", "This is a test"
.AppendItemValue "Body", & _
"This is the two Line Issue" & VBCrLf & _
"This text Should appear below the prior, but doesn't"
.Send False, vRecipients
Call .Save(True, False)'Save to Sent
End With
Set lotDocument = Nothing
Set lotDatabase = Nothing
Set lotSession = Nothing