您的位置:首页 > 其它

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

2006-04-28 21:00 471 查看
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。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: