# Re: 有关CrystalReport....

Posted by Koi on April 20, 1999 at 16:48:00:

In Reply to: 有关CrystalReport.... posted by Linyc on April 20, 1999 at 08:47:48:

在报表的 detail 中插入两个变数:

n1 (列印时隐藏)
-----------------------------------
WhilePrintingRecords;
NumberVar rec;
rec := rec + 1;

rec
-----------------------------------
NumberVar prePage;
NumberVar rec;
if PageNumber <> prePage then
(
prePage := PageNumber;
rec := 1;
)
else
rec;
rec;

Follow Ups: