
sabzam
Member Posts: 1,149
Hi eVERYBOYD,
I am customising the mail codeunit. I need to have display a number of lines instead of just one line. Is this possible? At the moment everything is being displayed as just one line. FOR EXAMPLE:
xxxxxxxxxx : xxxxxxxxx
But I need them to be written as
xxxxxxxxxx
xxxxxxxxxx
Is it possible?
I am customising the mail codeunit. I need to have display a number of lines instead of just one line. Is this possible? At the moment everything is being displayed as just one line. FOR EXAMPLE:
xxxxxxxxxx : xxxxxxxxx
But I need them to be written as
xxxxxxxxxx
xxxxxxxxxx
Is it possible?
0
Comments
-
chr <- variable of type char Body <- Variable of Type Text 260 Mail variable of thype codeunit Mail chr := 13; Body := 'This' + format(chr) + 'is' + format(chr) + 'a' + format(chr) + 'Test' + format(chr); Mail.NewMessage('Mail@Mail.com','','tedstr',Body,'',true);
It's an fast example. If you search the forum, i'm sure, u will find a lot of examples
RegardsDo you make it right, it works too!0 -
//Mail is a variable of type Codeunit 397
//LF is a variable of type Text length 2
LF := ' ';
LF[1] := 10;
LF[2] := 13;
Mail.AddBodyline('this is line 1');
Mail.AddBodyline(LF) ;
Mail.AddBodyline('this is line 2');
Mail.AddBodyline(LF) ;
Mail.AddBodyline('this is line 3');
Mail.NewMessage(ToName,CCName,Subject,Body,AttachFileName,OpenDialog)0 -
Hi this has worked perfectly.....thanks alot.
Last question. What should I do to skip a line for example
xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxx0 -
Did you try:
Mail.AddBodyline('this is line 1'); Mail.AddBodyline(LF) ; Mail.AddBodyline('this is line 2'); Mail.AddBodyline(LF) ; Mail.AddBodyline(LF) ; Mail.AddBodyline('this is line 3');
?No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Yeppp, I have just managed. Thought I needed different numbering for a new line.
Thanks alot to everybody!!!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
- 320 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