我在编程的时候要用的报表,
可是不是写数据库程序,
我问一下TQRLabel
能不能在程序运行的时候改变它的内容呀,
比如何
QRLabel.caption := Edit1.Text;
QuickRep1.preview;
可是这样出错呀。

解决方案 »

  1.   

    当然可以了,qrlabel是label的子类,有时候跟label使用是一样的,可以在运行中改变值,就像你说的,qr.....caption := edit1.text; or ‘可以’ 呵呵
      

  2.   

    project dprMain.exe raised exception class EAccessViolation with
    message'Access violation at address 004DE940 in module 'dprMain.exe'
    Read of address 00000320',Process stopped,Use Step or Run to Continue,
      

  3.   

    可以,没问题,我做过,指定窗体试试
    reportform.Quickreport.QRLabel1.caption:=edit1.text;
    不行的话,就按delphi的demos里的实例那样做,肯定行
    D:\Program Files\Borland\Delphi5\Demos\Quickrpt\Qr2