Units in QReport and Other summary(关于QReport中的Unit)

The following delare somewhat type in which unit;

TQRBandType :             QrPrntr;

TPageOrientation:       Printers;

 

TQRCustomBand is the super class of TQRBand and TQRGroup.

if you put  controls of other page that is not the'QReport' page in a quickrep control.when preview you can't see the controls except the QReport's controls.That is say you can put a panel in the quickrep but can see the panel in the preview form.if you save the preview then the same:you only save the QReport's controls.

 

-------------------------------------------------

用qreport画表格线的问题:

1.通常在QuickReport下要劃格子是在Band.Frame.DrawTop等
2.通常在QuickReport下無資料要劃空白列的格子線是用
 onNeedData。如果是Master-Detail也可在Detail-Band的
 用OnNeedData為之。
不過明顯的,這不是你要的。

你要在此QRLabel劃格子。
1.如是外框格子,可用QRShape
2.如是框內的話,可用字的底線。不過線會有不對齊的問題
3.如2.可否用動態建元件方式加QRShape之方式為之。
 //不過這好像很難,有時你又要考慮兩行三行及字多時要
 //  動態改字大小的問題。
 //初想之下,太複雜了。沒試過。不敢講。
 //只是把想的結果告訴你。說不定,你照這樣作可以成功。
 //不過已經很小的QRLabel再畫格子可能會很擠,不好看。

为了画竖线,将qrshape.shape的值设为qrsRightAndLeft;

另外,在使用qrshape的时候,有个问题,如果用一个height为40的qrshape框一个qrdbtext的话,当qrdbtext多行显示的时候,没有办法事先确定qrshape的height。

非常规手段:将height的值设大一点,比如100。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值