The ra.Value in the while loop sometimes is DateTime type and unfortunately the .ToString() method is not enough to convert it to string. What I should change on my code, to recognize when ra.Value is DateTime type and convert it to String. Now I have the exception that conversion from type 'DateTime' to type 'String' is not valid.
With ro.Attributes.GetEnumerator
While .MoveNext
Dim ra As ReportAttribute = CType(.Current, ReportAttribute)
Dim lstrColumnReportObj As Integer = ra.Column
Dim lstrValueReportObj As String = ra.Value.ToString()
lstrParTable(lstrColumnReportObj) = lstrParTable(lstrColumnReportObj) + lstrValueReportObj
End While
End With
Thank you.