1、如果stringgrid的数据是从dataset里取来的,那就直接打dataset里的数据吧。如不是,就只能一格一格的取数据打了。
2、试一下用FormatFloat
2、试一下用FormatFloat
解决方案 »
- 问个函数型指针的问题,请教大家
- 看看这段代码
- 求函数,有没有一个函数可以判断一个字符串时否是整型呢?
- 散点分啦!哈...
- 再送100分,感谢Eastunfail(龍子龍孫) (诚彼娘之非悦) ,singun(singun),SharpExpress(GyKing)
- 请问我做以TStringList为元素的数组是Array of TStirngList还是把TStringList放到TStringList里面去?
- 得了个MP3,良心上过不去,还是放放分吧
- 年去做erp,但对erp不了解呀!做过的朋友给说说经验吧!
- 初学编程的问题!!!
- ADOQuery如何在SQL Server2000 中存储大二进制字段(即TBlOBfield) 大虾多指教30分!!
- 放分小问题
- 如何注册Active X ??????????????????
frmNeedData: TfrmNeedData;implementation{$R *.dfm}procedure TfrmNeedData.FormCreate(Sender: TObject);
var
i: integer;
begin
SomeList := TStringlist.Create; for i := 0 to 500 do
SomeList.Add('Line ' + IntToStr(i));
end;procedure TfrmNeedData.QuickRep1BeforePrint(Sender: TCustomQuickRep;
var PrintReport: Boolean);
begin
// You must reset your data in the BeforePrint event
// or when you print from the preview, the report will
// start with the last value(s)
CurrentIndex := 0;
end;procedure TfrmNeedData.QuickRep1NeedData(Sender: TObject;
var MoreData: Boolean);
begin
// If MoreData is true, then QuickReport will print
// another detail band. When you set it to false,
// the report is done. MoreData := (CurrentIndex < SomeList.Count); if MoreData then
begin
QRLabel1.Caption := SomeList[CurrentIndex]; // Here's how to set the progress bar
QuickRep1.QRPrinter.Progress := (Longint(CurrentIndex) * 100) div SomeList.Count;
end
else
QuickRep1.QRPrinter.Progress := 100; Inc(CurrentIndex);
end;end.
这是第一个问题的答案
第二个问题。
[email protected]
然后因为你可能不知道有多少个RQLABEL你要动态产生QRLABEL
好像没写错吧