Dataset "" is not exists
My report is ok in FR2.5, but when i migration fastreport from 2.5 to 3.09,i get the follow error: Dataset "" is not exists.
In my application, all data is created dynamic, for example, i always create a clientdateset, then load data from a xml file, then link the clientdataset to TfrxDBDataset, everything is ok in FR2.5, but when i migration fastreport from 2.5 to 3.09,i get the follow error: Dataset "" is not exists.
why??
In my application, all data is created dynamic, for example, i always create a clientdateset, then load data from a xml file, then link the clientdataset to TfrxDBDataset, everything is ok in FR2.5, but when i migration fastreport from 2.5 to 3.09,i get the follow error: Dataset "" is not exists.
why??
Comments
Maybe the key poing is i use a dynamic data. The dataset of report is a clientdataset in my application. I always create a clientdataset in runtime, then clientdataset loads data from a xml file. then link the clientdataset to TfrxDBDataset, everything is ok in FR2.5, but when i migration fastreport from 2.5 to 3.09,i get the following error: Dataset "" is not exists.
It runs ok even in FR3.09 if i use a predefined datasource.
procedure TForm1.Button1Click(Sender: TObject);
var
mast: TClientDataSet;
frmast: TfrxDBDataset;
report: TfrxReport;
begin
mast := TClientDataSet.Create(self);
mast.LoadFromFile('data.xml');
mast.Active := true;
frmast := TfrxDBDataSet.Create(self);
frmast.DataSet := mast;
report := TfrxReport.Create(self);
report.LoadFromFile('test.fr3');
report.ShowReport;
end;