Data registration problem
Dear all,
As I am totally new user of FastReport my question might be simlpe, but still I cannot solve it myself.
Here is my piece of code:
ReportsPersonasKartina.Load("Reports/Protokoli_Search.frx"); //Loading previsoulsy designed report
Protokols.BindDataGrid(ref this.DataReportSearch); // Populating my data set with data in memory
ReportsPersonasKartina.RegisterData(this.DataReportSearch, "Protokoli"); //Registering table "Protokoli"
ReportsPersonasKartina.GetDataSource("Protokoli").Enabled = true; //Enabling it
ReportsPersonasKartina.Prepare(true); //not sure what is done here Copy/Paste from examples
//this is where I get error with description that the data is not registered
ReportsPersonasKartina.Show(); //trying to show it
My data set contains one static table "Protokoli", which is populated with data in memory. The table is bound in the report and as far as I see all names and aliases are correct.
So, pleas can somone explain where I have made a mistake?
Thank you in advance
Agris
As I am totally new user of FastReport my question might be simlpe, but still I cannot solve it myself.
Here is my piece of code:
ReportsPersonasKartina.Load("Reports/Protokoli_Search.frx"); //Loading previsoulsy designed report
Protokols.BindDataGrid(ref this.DataReportSearch); // Populating my data set with data in memory
ReportsPersonasKartina.RegisterData(this.DataReportSearch, "Protokoli"); //Registering table "Protokoli"
ReportsPersonasKartina.GetDataSource("Protokoli").Enabled = true; //Enabling it
ReportsPersonasKartina.Prepare(true); //not sure what is done here Copy/Paste from examples
//this is where I get error with description that the data is not registered
ReportsPersonasKartina.Show(); //trying to show it
My data set contains one static table "Protokoli", which is populated with data in memory. The table is bound in the report and as far as I see all names and aliases are correct.
So, pleas can somone explain where I have made a mistake?
Thank you in advance
Agris