View Single Post
Old 02-01-2006, 12:30 PM   #6 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
Now I have no idear what specific language this is in, but from the small code examples you've shown here, I'm guessing VB, it's been a while since I've touched that, but something like:
Code:
...
Dim sb As New StringBuilder
Dim rows As Integer
Dim colums As Integer
Dim i As Integer
Dim j As Integer
...
oMailMsg.BodyFormat = MailFormat.Html
rows = ds.Tables.Rows.Count
columns = ds.Tables.Columns.Count
sb.Append("<p><img SRC=C:\SelectLogo.gif></p><br>")
sb.Append("<table border=1>")
For i = 0 To rows
    sb.Append("<tr>")
    For j = 0 To columns
        sb.Append("<td>" + ds.Tables(i).Item(j) + "</td>")
    Next j
    sb.Append("</tr>")
Next i
sb.Append("</table>")
might give you a hint on where I'm going with how you can access the items in a NxM table.
__________________
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