Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

SkipLabel and Repeatlabel trouble on the first visible repeat (BandsPerRecord initialized)

edited October 2001 in General
Hi,

I use ReportBuilder 5.5 Entreprise (with RAP).

For Example, I've got :
Label_SkipLabel.Caption:=3;
Label_NbrLabel.Caption:=2;

ReportOnStartPage :

begin
if (Report.AbsolutePageNo=1) and (StrToInt(Label_SkipLabel.Caption)>0)
then
begin
Detail.BandsPerRecord:=StrToInt(Label_SkipLabel.Caption)+1;
Region_Adr.Visible:=False;
end
else
Detail.BandsPerRecord:=StrToInt(Label_NbrLabel.Caption);
end;

DetailBeforePrint :
begin
if (Detail.BandsPerRecord>1) and
(Detail.BandsPerRecordCount=Detail.BandsPerRecord) then
begin

if Region_Adr.Visible then
Detail.BandsPerRecord:=StrToInt(Label_NbrLabel.Caption)
else
begin
Detail.BandsPerRecord:=StrToInt(Label_NbrLabel.Caption)+1;
Region_Adr.Visible:=True;
end;
end;
end;

It skipp 3 Label = ok
The first Label is repeat only 1 time (I would like 2)
the next Label are repeat 2 time = ok.

I can't find the good syntaxe for it's work, since I'm not sure to have
really understand how it's work (or there is a bug ?)

kloo

Comments

This discussion has been closed.