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??


Comments

  • edited 11:05PM
    When converting old reports to 3.0, you should go designer, Report|Data menu and select desired datasets.
  • edited 11:05PM
    Thanks your attention! I have done just like what you said, but the error still occurs during previewing report.

    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;
  • edited 11:05PM
    I'd like to look at test.fr file, could you send it to tz@fast-report.com?
  • edited 11:05PM
    i have send the test code to you, please check it.

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.