Error message

edited 5:33AM 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 5:33AM
    Do not set the TfrxReport.DataSet to the same dataset as Page.DataSet or Band.DataSet.
  • edited 5:33AM
    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 5:33AM
    I've not such a file...I'm using BCB6...

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.