Reports - Repeat Header/Footer on each page?

More
2 years 6 days ago #23989 by prashant
HI,
  • Could you please guide me how to repeat header/footer in each page ?
  • Could you please guide me how to repeat header/footer in each page if they are image?
 
 

Please Log in or Create an account to join the conversation.

More
2 years 5 days ago #23991 by Peter.Jonson
Here it is.

 

You can use "beforeprintevent" to hide/show footer header dynamically

Please check pdf documentation   

Peter Jonson
ETL Developer
The following user(s) said Thank You: prashant

Please Log in or Create an account to join the conversation.

More
2 years 5 days ago #23994 by prashant

You can use "beforeprintevent" to hide/show footer header dynamically

Please check pdf documentation   

Hellos !
I have found the relevant settings , but to show it dynamically means writing code in Pascal/javascript.  ChatGPT gives wrong answers on this as well. Let me know if I this I should email for this for additional support . 
Code:
procedure PageFooter1OnBeforePrint(Sender: TfrxComponent); begin   TfrxBand(Sender).Visible := True; end;
 

Please Log in or Create an account to join the conversation.

More
2 years 4 days ago #23996 by admin
Well ChatGpt has plenty of room for improovment.

This one works

procedure PageFooter1OnBeforePrint(Sender: TfrxComponent);
begin  
   PageFooter1.Visible := True;
end;

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

More
2 years 3 days ago #23997 by prashant

Well ChatGpt has plenty of room for improovment.

This one works

procedure PageFooter1OnBeforePrint(Sender: TfrxComponent);
begin  
   PageFooter1.Visible := True;
end;
It seems the last begin and end is also important ! I am still not able to resolve this though , in pdf preview I dont' see the footer repeating on other pages. Do we create footer on each page? then add the code on each page
Code:
procedure PageFooter1OnBeforePrint(Sender: TfrxComponent); begin      PageFooter1.Visible := True; end; begin end.

Please Log in or Create an account to join the conversation.

More
2 years 3 days ago #23999 by admin
I am really struggling to understand the issue to be honest..

i was under ompression that you want to show hide page footer/header dinamically. In this case you have to use script.

If you want to show them on every page there is no need to use script.

More than if create report using the wizard the footer and header are addede3 for you automatocally.

Am i missing something?

Mike
ETL Architect

Please Log in or Create an account to join the conversation.

Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Read more
Marketing
Set of techniques which have for object the commercial strategy and in particular the market study.
Google
Accept
Decline
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Google Analytics
Accept
Decline
Functional
Tools used to give you more features when navigating on the website, this can include social sharing.
Advertisement
If you accept, the ads on the page will be adapted to your preferences.
Google Ad
Accept
Decline
Save