View Single Post
Old 01-31-2006, 01:48 PM   #4 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,708
redhead is on a distinguished road
Well, your first post didn't tell anything on how the input data was formed, and how you wanted it displayed in your table, I just assumed you were having trouble building a dynamic table from your fetched data.

On another note, you could make it:
Code:
Dim sb As New StringBuilder
    oMailMsg.BodyFormat = MailFormat.Html
Dim aRow As DataRow

sb.Append("<p><img SRC=C:\SelectLogo.gif></p><br>") --Image embeded
sb.Append("<table border=1>")
For Each aRow In ds.Tables(0).Rows
    sb.Append("<tr><td>" + aRow.Item(0) + "</td>" + "<td>" + aRow.Item(1) + "</td></tr>")
Next
sb.Append("</table>")
oMailMsg.Body = sb.ToString
For a nicer output.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote