I am generating a report with
vb .net in a .xls sheet but my numbers are stored as text. how can I fix this?
The number of hours is saved as text and not as number. Any ideas?
[
vb]
...
While i < dsetTask.Tables("tblTask").Rows.Count
drowData = Data.NewRow()
drowData("Name") = dsetTask.Tables("tblTask").Rows(i)("Name")
drowData("Hour") = dsetTask.Tables("tblTask").Rows(i)("Hour")
End While
...
[/
vb]
I tried to CType the right-hand-side of the drowData("Hour")=... to type Single or Double, still gives me cells with numbers in them but it says that the numbers are stored as text. WHAT DO I DO? :(