Hi,
i've created a new table with some records and after the daily register those records are sent by mail ( outlook). My problem is to make the body of the mail to change line.
In c#, for example, we put '\n'. How can i do this in Navision?
Thanks
0
Comments
(This is one way, and the usual way I go about doing it.)
There are definitely ways to use the '\' character to get a new line in Navision but there are also other ways where it does not work. Which is why instead of fumbling with that I just go for the above method.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
For example you can send CR LF (ASCII 10 / ASCII 13) or in HTML Style <br>
regards
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I've tried with '//' but it is not working...
// will never work. \\ may be... but in this case you need to use the CR+LF way... just create the string with the CR and LF strings and insert it into the text where you want to insert the empty string.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
what is the CR+LF way? This is the code, i want to change line after the FORMAT(Corresp.Valor);:
nomeTo := text1;
nome := '';
Assunto:=text2;
corpo := '';
Corresp.SETRANGE(Data,TODAY);
IF Corresp.FIND('-') THEN
BEGIN
REPEAT
corpo += FORMAT(Corresp.Data)+' '+Corresp.Remetente+' '+Corresp.Assunto+' '+Corresp.Destinatário+' '+FORMAT(Corresp.Valor);
Mail.AddBodyline(corpo) ;
UNTIL Corresp.NEXT=0
END;
Mail.NewMessage(nomeTo,nome,Assunto,'',anexo, TRUE);
thanks
Name = crlf
DataType = Text
Length = 2
Sorry so many questions, but i don't know nothing about programing..
Thanks O:)
I am creating an email and I'm Using the crlf thing to go to next line, but what should I do to skip a line?
I want the body to look like this
xxxxx
xxxxx
Is this possible?