Data registration problem

edited 1:04PM in FastReport .NET
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

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.