My predecessor wrote a routine to print up to 99 sales lines with some headings and trailers on an e-mail for our customer card. He changed the BODY to have 99 occurences, and formats each line in the body as he wants it to appear on the e-mail. He feeds the lines into MAPI like this
MAPIHandler.Body := Body[1];
MAPIHandler.AddBodyText(' ');
REPEAT
BEGIN
MAPIHandler.AddBodyText(Body);
i := i+1;
END;
UNTIL i = 98;
It works great...
Unfortuatley MAPI is not goign to worek on the new server I just installed. My code look like
BSTRConverterBody.AppendNextStringPortion(Body[1]);
i := 2;
REPEAT
BEGIN
BSTRConverterBody.ResetBSTRCursor;
BSTRConverterBody.AppendNextStringPortion(Body);
i := i+1;
END;
UNTIL i = 98;
//END;
OSendMail.Body := BSTRConverterBody;
When it goes to the e-mail, my code strings everythign togethjer (like it does not know that new line or carriage control even exists.........
Does anyone know how to as new line character ?
0
Comments
I am an old COBOL guy.... We use set PIC X to a hex value with the old EBCIDIC card...
How do you set a char value in Navision?
Appreicate the reply though, seriously.....
Char13 := 13;
Remember, a char is just a byte, 0 to 255. You assign it like anything else in NAV.