• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 410
  • Last Modified:

Can't get vbcrlf to work in Lotus Notes document

With your help, I have written a program to automatically send daily business updates to my colleagues via Lotus Notes mail.  I’m creating a Domino rich text document object, loading the information but I can’t get the vbcrlf to work. For example, if I send the message ( “Have a nice day,” & vbcrlf & “Joe Jones”) it appears as one line in the e-mail with a couple of symbols representing the cr and lf characters like this (Have a nice day,||Joe Jones).  How do I get a crlf to work in the body of the message?
0
Fluoronator
Asked:
Fluoronator
1 Solution
 
bob_onlineCommented:
I don't know, but you might try vbNewLine instead -- it's supposed to be non-platform specific -- I don't know if that will make a difference here.
0
 
Richie_SimonettiIT OperationsCommented:
Try with Chr$(10) or Chr$(10) + Chr$(13)
0
 
aelatikCommented:
Assuming you can figure out how to implement it in your own code, otherwise post your code.

This is the way to approach it, just finished my project an hour ago.

Set notesrtf = notesdoc.createrichtextitem("Body")
notesrtf.appendtext("MyText")
notesrtf.addnewline(1)
notesrtf.appendtext("MyText2")
notesrtf.addnewline(1)

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now