刚刚学用FastReport,谁用过他?怎么动态控制FastReport的frReport控件?怎么用frPreview显示内容?

解决方案 »

  1.   

    动态控制FastReport的frReport是什么意思?
    用frReport1.showreport就可以显示。
      

  2.   

    就是程序怎么在frReport上动态添加文字,图片,表格等
      

  3.   

    ???自带的Demos里面不是有一个例子嘛。runtime下面那个工程,仔细看看就了解了。procedure TForm1.Button1Click(Sender: TObject);
    var
      v: TfrView;
      b: TfrBandView;
      Page: TfrPage;
    begin
      frReport1.Pages.Clear;
      frReport1.Pages.Add;              // create page
      Page := frReport1.Pages[0];  b := TfrBandView.Create;             // create Title band
      b.SetBounds(0, 20, 0, 20);           // position and size in pixels
      b.BandType := btReportTitle;         // (only Top and Height are significant
      Page.Objects.Add(b);                 //  for the band)  v := TfrMemoView.Create;             // create memo
      v.SetBounds(20, 20, 200, 16);
      v.BandAlign := baWidth;
      v.Prop['Alignment'] := frtaCenter;   // another way to access properties
      v.Prop['Font.Style'] := 2;
      v.Memo.Add('Your text is: [Edit1.Text]');
      Page.Objects.Add(v);  ....
    end;
      

  4.   

    恩,看例子,没有哪本书会介绍的,HOHO,我都是直接拉上去的.