Dear users,
i want to use a class from my project to generate a report. i am able to use Public Property's from my class as long as it holds just one value with success
When i try to use a property like (remark: i want to print all values in it as a list)
Public Property douRundenZeiten As New BindingList(Of Double) ' Feld mit allen Rundenzeiten - Messwerte
instead of the values the report shows System.ComponentModel.BindingList1[System.Double] in the tablecell (table wizard as used)
Why will this happen and how to access the real values from the BindingList
A close by behavior also happens when i read in an xml file like
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
TicketRun
>
<
Fahrer
>
<
Pos
>1</
Pos
>
<
Kart
>8</
Kart
>
<
NameOfDriver
>Kart-Nr. 08</
NameOfDriver
>
<
Rnd
>13</
Rnd
>
<
Rundenzeiten
>
<
Laptime
>120,06</
Laptime
>
<
Laptime
>119,15</
Laptime
>
<
Laptime
>126,12</
Laptime
>
<
Laptime
>159,8</
Laptime
>
<
Laptime
>147,46</
Laptime
>
<
Laptime
>119,07</
Laptime
>
<
Laptime
>119,22</
Laptime
>
<
Laptime
>120,2</
Laptime
>
<
Laptime
>119,64</
Laptime
>
<
Laptime
>120,3</
Laptime
>
<
Laptime
>120,2</
Laptime
>
<
Laptime
>120,85</
Laptime
>
<
Laptime
>121,34</
Laptime
>
</
Rundenzeiten
>
<
Best
>119,07</
Best
>
<
Speed
>19,05</
Speed
>
</
Fahrer
>
Using
Function
ReadTicketWithTimesXml(xmlfile
As
String
)
Dim
ds
As
New
DataSet
xmlfile =
"e:/karatris/LTR.xml"
ds.ReadXml(xmlfile)
Return
ds.Tables(
"Fahrer"
)
End
Function
and use this function as a source for an objectdatasource all values can be used in a report except the <Rundenzeiten> <Laptime> values.
The Report shows System.Data.RelatedView in the table cell instead of the values.
Using the same xml in Altova Style Vision works like a charm for generating HTML Reports.
What is the reasons why it does not work the same way in reporting. Where is my mistake?
Attached is the view how the objectdatasource looks in visual studio 2012.
Any help is welcome
Martin Gartmann