如何在程序运行阶段对 quick report 进行纸张设置,
如 quickrpt.page.pagesize;=A4 ;
(系统会提示 [Error] Unit1.pas(29): Undeclared identifier: 'a4')

解决方案 »

  1.   

    to  adventurezl(阿林) 
    quickrep1.Page.PaperSize:='A4' 出现
    [Error] Unit1.pas(30): Incompatible types: 'TQRPaperSize' and 'String'
      

  2.   

    sorry,我没有看清.
    好象帮助文件里也找不到。
    看来购买的模块还是不如自己做的
      

  3.   

    找到了:
    TQRPaperSize = (Default, Letter, LetterSmall, Tabloid, Ledger, Legal,
                    Statement, Executive, A3, A4, A4Small, A5, B4, B5, Folio,
                    Quarto, qr10X14, qr11X17, Note, Env9, Env10, Env11, Env12,
                    Env14, CSheet, DSheet, ESheet, Custom)
    property PaperSize : TQRPaperSizeDescriptionUse the PaperSize property to select a specific paper size for the report layout. To print on whatever paper is installed with the printer leave it to Default. To specify your own paper size set PaperSize to Custom and override the Length and Width properties. 
      

  4.   

    to  adventurezl(阿林) 
    但是我如何在程序运行阶段进行赋值呢?
      

  5.   

    to  adventurezl(阿林) 
    我已经 form1 中已经放了一 quickrep ,一 button,
    在 button 的 onclick 事件中写以下代码:
    quickrep1.Page.PaperSize:='A4' 
     出现
    [Error] Unit1.pas(30): Incompatible types: 'TQRPaperSize' and 'String'
    如何 将 'A4' 设置呢?
      

  6.   

    interfaceuses   ...
     QRCtrls, QuickRpt,Printers, QRPrntr;代码中
      quickrep1.Page.PaperSize:=A4 不需要引号