0

Hi,

I hve some problem with inline attachment file.i already done with attached file,but when receiver receive the email,it not same like attached.for example like below.

in the attach file:
age total
12 - 15 5
16 - 20 8
21 - 25 10

when receive it becomes like that:

age total
12 - 15 5
16 - 20 8
21 - 25 10

which is the data is not organized like attach..how to write code for this problem?thanks in advance.

Edited by inahrun: n/a

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by __avd
0

Use String.Format() method.

Example

System.IO.File.AppendAllText("p.txt", string.Format("{0,-10}{1,-20}\r\n", 10, 20));
System.IO.File.AppendAllText("p.txt", string.Format("{0,-10}{1,-20}\r\n", 20, 2));
System.IO.File.AppendAllText("p.txt", string.Format("{0,-10}{1,-20}\r\n", 4, 10));

Edited by __avd: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.