Hi!!!
I want some text in bold format from richtextitem which i need to mail.
I tried using richstyle as below.
Set memo=New NotesDocument(db)
With memo
.Form = "Memo"
.subject="100% PHYSICAL VERIFICATION OF STORES........."
End With
Dim rt As NotesRichTextItem
Set rt= New NotesRichTextItem (memo ,"Body" )
Call rt.AppendText("Dear Sir/Madam ,")
Call rt.AddNewline(2)
Dim richStyle As NotesRichTextStyle
Set richStyle = session.CreateRichTextStyle
Call rt.AppendText(“SO(Stores And Purchase)”)
richstyle.Bold=True
Call rt.AppendStyle(richStyle)
Call memo.Send(False, recipients )
This doesn’t give any formatting.
Please give me solution on this.
Subject: format text in mail
Dim rt As NotesRichTextItemDim richStyle As NotesRichTextStyle
Set richStyle = session.CreateRichTextStyle
Set rt= New NotesRichTextItem (memo ,“Body” )
rtstyle.Bold =True
rtstyle.NotesColor =COLOR_BLUE
Call rtf.AppendStyle(rtStyle)
Call rt.AppendText(“Dear Sir/Madam ,”)
Call rt.AddNewline(2)
Call rt.AppendText(“SO(Stores And Purchase)”)
richstyle.Bold=True
Call rt.AppendStyle(richStyle)
Call memo.Send(False, recipients )
CHECK THIS
Subject: RE: format text in mail
hi…
Thanks for help…
I copied your code and tried its still not working…
Subject: format text in mail
You put the style in place first, then the text you want formatted by the style.
Subject: RE: format text in mail
HI, Thanks for the reponse…
I tried placing stylein before the text which i need to format, it is still not working.
I am sending this mail to REDIFF account and checking from the same. Does it matters??