Microsoft Navision Mail - Line breaks in body text

tomadtomad Member Posts: 12
Hi

Does anyone know if it is possible to insert Line breaks using AppendBody in the Microsoft.Navision.Mail.dll?
Regards

/tomad

Comments

  • ara3nara3n Member Posts: 9,256
    have you tried format(CHR(10)) + format(CHR(13)) ?
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • garakgarak Member Posts: 3,263
    if your search the forum for Line Break and MAIL u will find the solution 8Like Carriage return char sign or Line feed char sign.)

    regards
    Do you make it right, it works too!
  • tomadtomad Member Posts: 12
    Thanks both of you - that did the trick. I actually did search the forum first, but missed the old topics.
    Regards

    /tomad
  • ara3nara3n Member Posts: 9,256
    you are welcome and good luck with mailing.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • ayansinhaayansinha Member Posts: 3
    I did it this way in NAV 2013:

    (MailCD = Variable - Codeunit Mail.)

    MailCD.AddBodyline('Text1');
    MailCD.AddBodyline(FORMAT('<br>'));
    MailCD.AddBodyline('Text2');
    MailCD.AddBodyline(FORMAT('<br>'));
    MailCD.AddBodyline('Text3');
    MailCD.AddBodyline(FORMAT('<br>'));
    MailCD.AddBodyline('Text4');

    works like a charm with HTML format TRUE.

    I think rest of the HTML tags can also be used like this.
Sign In or Register to comment.