Error message

edited 7:48AM in FastReport 3.0
I've just downloaded the version 3.04.

I've the following error message when I print a report I've created with a previous version :
"Cannot use the same dataset for Report.DataSet and Page.DataSet"

I don't understand this message :
- It worked well with the v3.03
- I see the property DataSet of a page...but not the Report's one...

Any idea?
;)

Comments

  • edited 7:48AM
    Do not set the TfrxReport.DataSet to the same dataset as Page.DataSet or Band.DataSet.
  • edited 7:48AM
    In my case, the TfrxReport.DataSet and the Page.DataSet are set to NULL
    Only the Band.DataSet is defined...
  • edited October 2004
    This may be due to a bug in the FR3.04. Change the frxClass.pas:
    function frxFindDataSet(DataSet: TfrxDataSet; const Name: String;
      Owner: TComponent): TfrxDataSet;
    var
      i: Integer;
      ds: TfrxDataSet;
    begin
      Result := DataSet;
      if Name = '' then
      begin
        Result := nil;
        Exit;
      end;
      if Owner = nil then Exit;
      for i := 0 to DatasetList.Count - 1 do
      begin
        ds := DatasetList[i];
        if AnsiCompareText(ds.UserName, Name) = 0 then
          if not ((Owner is TfrxReport) and (ds.Owner is TfrxReport) and
            (ds.Owner <> Owner)) then
          begin
            Result := DatasetList[i];
            break;
          end;
      end;
    end;
    
  • edited 7:48AM
    I've not such a file...I'm using BCB6...

Leave a Comment