Qrep能动态生成QRShape/qrdbtext控件吗?
我想直接在报表中画线和框,不知道如何定位光标。请各位帮忙!谢了

解决方案 »

  1.   

    可以啊 TQRDBText *a = new TQRDBText()
    a->Parent = QuickRep1;
    a->Left = ...
    a->Width = ...
    a->Top = ...
    a->Height = ...
    a->Visible = true;
      

  2.   

    var
      a:TQRDBText;a := TQRDBText.create(this);
    a.Parent := QuickRep1;
    a.Left = ...
    a.Width = ...
    a.Top = ...
    a.Height = ...
    a.Visible := true;不好意思,上面是C++的
      

  3.   

    我要生成的一条线是在DetailBand里面的
    是否应这样写
    a.Parent := QuickRep1.DetailBand1;
      

  4.   

    用 QRShape 可以实现的!!
      

  5.   

    我知道了,应该是:
    a.Parent := QuickRep1.bands.DetailBand;