SkipLabel and Repeatlabel trouble on the first visible repeat (BandsPerRecord initialized)
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
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
This discussion has been closed.
Comments
traversal configuration. It won't work when it is set to LeftToRight. Is
this the problem? Instead of using the label captions to store your integer
values, use TppVariables of type Integer.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com