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。