Change Line
 
            
                
                    mar                
                
                    Member Posts: 17                
            
                        
            
                    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
                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
- 
            //crlf Text 2 crlf[1] := 13; crlf[2] := 10; 
 (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.0
- 
            Which version? If you are using SMTP Mailing, than you can use HTML mail format and use the < br > tag to add end of line...0
- 
            it is dependent on your version.
 For example you can send CR LF (ASCII 10 / ASCII 13) or in HTML Style <br>
 regardsDo you make it right, it works too!0
- 
            a damned, kine is awake and was fasterDo you make it right, it works too!0
- 
            
 8) sometime I am faster...garak wrote:a damned, kine is awake and was faster0
- 
            It's on Version 4.0.
 I've tried with '//' but it is not working...0
- 
            mar wrote:It's on Version 4.0.
 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.0
- 
            // 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.
 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);
 thanks0
- 
            Oh dear, try to think a little bit yourself.
 Name = crlf
 DataType = Text
 Length = 2crlf[1] := 13; crlf[2] := 10; ... corpo += FORMAT(Corresp.Data)+' '+Corresp.Remetente+' '+Corresp.Assunto+' '+Corresp.Destinatário+' '+FORMAT(Corresp.Valor) + crlf; "Money is likewise the greatest chance and the greatest scourge of mankind."0
- 
            It's working, thanks a lot!
 Sorry so many questions, but i don't know nothing about programing..
 Thanks O:)0
- 
            Hi Everybody,
 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?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 322 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions




