新手提问,大侠们帮一下忙了,郁闷了好几天了。
恶鱼 2004-03-25 05:13:27 在QReport中,用QRLabel 怎么样能让他按表格格子大小显示数据?如果数据过多,我试过用回车,但是表格不会自动变大,数据在格子的外面,不用回车就把后面格子的数据盖住了,郁闷,大家帮一下我怎么做好,我先谢谢了!
var
i:integer;
atop:integer;
aLabel:TQRLabel;
aLine:TQRShape;
d1,d2,d3:Tdate;
dw1:string;
begin
aLine:= TQRShape.Create(qrpt_quanbu);
aLine.Parent := TitleBand1;
with aLine do
begin
aLine.Left:=196;
aLine.Top:=atop;
aLine.Width:=1;
aLine.Height:=16;
aLine.Frame.Color:=clBlack;
end;
aLabel:= TQRLabel.Create(qrpt_quanbu);
aLabel.Parent := TitleBand1;
with aLabel do
begin
AutoSize:=true;
AutoStretch:=True;
Font.Size:=8;
Left :=200;
Top := atop+2;
Alignment:=taLeftJustify;
Caption :=qmingxi.Fields[2].Value;
end;