如题

解决方案 »

  1.   

    用C++Builder写的,Delphi类似:
      TfrBandView *band;
      band=(TfrBandView *)(frCreateObject(gtBand,""));
      band->SetBounds(0,120,0,20);
      band->BandType=btMasterData;
      band->DataSet="frDBDataSet1";
      

  2.   

    band->BandType=btMasterData;
    这一行在DELPHI里就是通不过的
      

  3.   

    你看一下band的属性里有没有BandType,若有就不会错.我机器没装Delphi,没法帮你看了.
      

  4.   

    Page := frReport1.Pages[1];
      b := TfrBandView.Create;             // create Title band
      b.SetBounds(0,88,757,20);           // position and size in pixels
      b.BandType := btReportTitle;         // (only Top and Height are significant
      Page.Objects.Add(b);