on 03-13-2013 7:41 AM
Hi All,
I have a user defined field where user will enter his/her content in the field,this data has to be appeared in mail(Content/Body).
The problem is, the data which has been entered in the content field is been displayed in mail but not line by line.
The way how the user is entering the data in content field the same way it should appear in the mail i.e. line by line.
For eg:
UDF content I am entering is
1
2
3
4
The way the above data is appearing in mail is
1 2 3 4
If any one has an idea about this plz help me.
Thanks & Regards,
Shravya
Hi Maraju,
SAP B1 stores in the DB the newline as CHR(13) which is the carriage return charcode.
I'm guessing that you are writing it to a format which don't recognize this charcode as the charcode for newline, say html.
If this is the case, try str.Replace(Chr(13), "<BR>") or in other case, try change "<BR>" to the desired newline.
Best Regards,
VG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vitor,
Thanks for your reply.
But I didn't understand what you are trying to tell.
Anyways I am posting my code.
Dim strBody As StringBuilder = New StringBuilder
strBody.Append("<table>")
strBody.Append("<tr>")
strBody.Append("<td style='font-size: 14; font-weight: Regular;font-family:Calibri ;'>")
strBody.Append("" & Content & "<br>")
strBody.Append("</td>")
strBody.Append("</tr>")
strBody.Append("</table>")
Message.Body = strBody.ToString
Message.IsBodyHtml = True
Message.BodyEncoding = System.Text.Encoding.UTF7
Please specify if there are any changes to make.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.