Row Problem
Hello;
I'm new for FastReport.NET.I designed a report,I want to send a parameters from my program to report.But the problem is when I send a rows collection (dataset),only one row seems in the report.How can I send arrays to report without database connection.
Example
I'm using this code for it.
I'm new for FastReport.NET.I designed a report,I want to send a parameters from my program to report.But the problem is when I send a rows collection (dataset),only one row seems in the report.How can I send arrays to report without database connection.
Example
I'm using this code for it.
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
            {
                report1.SetParameterValue("Test", ds.Tables[0].Rows[i][2].ToString());
            }
Comments
This code just overwrites the "Test" parameter each time, so it will contain only the last value. I recommend to register the datasource in a report, instead of using the parameter.
report.RegisterData(ds.Tables[0], "MyTable");
In the report, you will be able to connect the MyTable datasource to a databand and print its rows.
I did it,but still there is a problem,I redesigned my report,only one row seems.