How to use a list as data source for report in FastReport.Core
I'm trying to use a list for the data source in my FastReport.Core report.
My c# looks something like this;
However, i get the following exception when i call prepare;
"Error CS0012: The type 'CollectionBase' is defined in an assembly that is not referenced.
You must add a reference to assembly 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
etc..."
What am I doing wrong here?
My c# looks something like this;
var list = new List<ReportData>();
report.RegisterData(list, "Data");
report.Prepare();
However, i get the following exception when i call prepare;
"Error CS0012: The type 'CollectionBase' is defined in an assembly that is not referenced.
You must add a reference to assembly 'System.Collections.NonGeneric, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
etc..."
What am I doing wrong here?
Comments
List<MatrixDemo> matrixDemo = new List<MatrixDemo>();
report.RegisterData(matrixDemo, "MatrixDemo", maxNestingLevel: 1);