You can toggle different content in headers/footers based on the page number using the header's/footer's BeforePrint event. For example, let's say we have an image which we want to only appear on the even pages and a label whose content need to vary.
procedure TForm1.ppHeaderBand1BeforePrint(Sender: TObject); begin if (ppReport1.Engine.PageNo mod 2 = 0) then begin ppImage1.Visible := True; ppLabel1.Caption := 'Even Page'; end else begin ppImage1.Visible := False; ppLabel1.Caption := 'Odd Page'; end; end;
Comments
using the header's/footer's BeforePrint event. For example, let's say we
have an image which we want to only appear on the even pages and a label
whose content need to vary.
procedure TForm1.ppHeaderBand1BeforePrint(Sender: TObject);
begin
if (ppReport1.Engine.PageNo mod 2 = 0) then
begin
ppImage1.Visible := True;
ppLabel1.Caption := 'Even Page';
end
else
begin
ppImage1.Visible := False;
ppLabel1.Caption := 'Odd Page';
end;
end;
--
Cheers,
Alexander Kramnik
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
"Alexander Kramnik (Digital Metaphors)" je
napisao u poruci interesnoj grupi:3d205e90$1@dm500....
number
pages