MAPI call and Carrige Return

McLean
Member Posts: 32
I need to generate a list of items and send this via outlook. The email connection works fine but I cannot send a carrige return/new line with each text item. I have tried asc(10) and chr(10) but Navision sees these as undeclared variables. The following also doesn't work.
CR is declared as type character.
CR:=10;
Body3:='Software Package :' + "Misc. Article Information".Description + ' Client/Project: '+CR;
Any suggestions?
CR is declared as type character.
CR:=10;
Body3:='Software Package :' + "Misc. Article Information".Description + ' Client/Project: '+CR;
Any suggestions?
0
Comments
-
Thanks, but no matter how I code it I get the following:
SOFTWARE: MS Project; Client/Project:CHR(13)SOFTWARE: Navision; Client/Project: CHR(13)SOFTWARE: Visio; Client/Project: CHR(13)SOFTWARE: MS Project; Client/Project:CHR(13)SOFTWARE: Dream Weaver; Client/Project:CHR(13)
As you can see the CHR(13) appears as a literal.0 -
I use the following code and it works just fine:
char10 := 10;
OutlContactItem.Body := 'CustomNo: ' + "No." + FORMAT(char10) + 'This is line 2';
with char10 being a variable of type Char.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
My code looks like this:
char10:=10;
Body3:='Software Package :' + "Misc. Article Information".Description + ' Client/Project: '+FORMAT(char10)+' ';
MAPIMessages.MsgNoteText := Body + Body2 + Body3;
I see you are using OutlContactItem.Body0 -
You have to use "FORMAT(CR)"No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0
-
Var
CRLF : Text[2]
Begin
CRLF[1] := 13;
CRLF[2] := 10;
OutlContactItem.Body := 'CustomNo: ' + "No." + CRLF + 'This is line 2' + CRLF;
End;
Marcus Fabian
m.fabian@thenet.ch
+41 79 439 78 72With best regards from Switzerland
Marcus Fabian0 -
Thanks Luc and fabian,
Both your suggestions work. I was doing something really stupid. I kept modify a section of code which wasn't being called so the changes had no effect!!
Regards
Angus0
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