Hi,
I used "Mail" Codeunit to create mails from navision. I have added body text of the mail. But I need to write in the mail like,
XXXX <tab> : <tab> X1
YYYY <tab> : <tabl> Y1
It should be aligned properly, and Here my code is,
Chr9 := 9;
Chr13 := 13;
MailMgt.AddBodyline('XXX' + Chr9 + ':' + Chr9 + 'X1' + Chr13);
MailMgt.AddBodyline('YYY' + Chr9 + ':' + Chr9 + 'Y1' + Chr13);
But instead of TAB, it is printing as SPACES. It is not alligned properly. I could not find out the issue.
Please give me any idea about this issue.
Thanks,
Divya
Victory is sweetest when you've known defeat
0
Comments
Use
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Yes. I used like this way only.. Sorry i missed format() when i post the code.
Still im facing same issue.
Thanks,
Divya
Can you show your code please..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
If you have equal No. of letters in both lines then the allignment will be proper..
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
if 1st sentence chars is more than 2nd sentense, i can change the code to put 2 tab position, that is not a problem.
But even if i use 2 tab positon, it is not aligning.