I have a Crystal Report in Visual Studio 2008 (C#). Its datasource is set programmatically at run-time to a .NET list, defined as follows:
List<visit_volume> Visits
a visit_volume looks like this:
public class visit_template
{
private int _numberOfVisits;
public int numberOfVisits
{
get { return this._numberOfVisits; }
set { this._numberOfVisits = value; }
}
// other ints and doubles declared here
// ..
// ..
private List<mEvent> _events;
public List<mEvent> events
{
get { return this._events; }
set
{
// updates _numberOfVisits here
// ..
// build-up a debugging string of each mEvent
// ..
}
}
}
So, being fed into the Crystal Report is a List<> of visit_volume objects, which themselves contain a List<> of mEvent objects.
In Crystal Reports, I can see the contents of the Visits list, but I can’t access and report on the contents of the events member – it just doesn’t show. Is this because Crystal can’t handle nested List<> structures, or am I doing something wrong?
Thanks in advance.
Having thought about it, the answer to this might be to include a subreport which simply has the
eventsstructure as its datasource.