I am writing lines to an html file for different values of ii. When ItemArray(2) is longer on one row than another, ItemArray(3) is pushed to the left and output looks wavy. Font tags already written to the file to make spacing even. ItemArray(2) can be 1 to 6 characters long. What am I doing wrong?
rl = " " + dataset2.Tables(0).Rows(ii).ItemArray(2).ToString.PadRight(6 - dataset2.Tables(0).Rows(ii).ItemArray(2).length, " ")
rl = rl + " " + dataset2.Tables(0).Rows(ii).ItemArray(3).toshortdatestring
rl = rl + " " + dataset2.Tables(0).Rows(ii).ItemArray(4).toshortdatestring
textfile.WriteLine(rl)
textfile.WriteLine("< ...
Go to the complete details ...