Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Fast-Reports: Two Pass report and masterdata over more than 1 page



Permlink Replies: 1 - Last Post: Dec 18, 2017 11:55 PM Last Post By: Paul Gursky Threads: [ Previous | Next ]
steven chesser

Posts: 401
Registered: 4/13/09
Fast-Reports: Two Pass report and masterdata over more than 1 page
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 31, 2017 9:35 PM
Fast-Reports 5.6.8 in Tokyo

I have a need to modify headers when data cross over in the next page and so on. Basically i need to modify a part of a memo field on the header
to say "continued on next page" , sounds silly but what I have to duplicate from a very old report.

I figure I have to do a two pass report possibly, then on one of the events of the header to check the masterdata band to see if it passes over into more than 1 page.

So if it crossed 3 pages

I would see

MyHeader < Continued on next page >

MyHeader < Continued on next page >

MyHeader


That way first 2 pages get the text added, while the 3rd page being the final page it was on, doesn't need it as it ended there.

Paul Gursky

Posts: 13
Registered: 7/6/11
Re: Fast-Reports: Two Pass report and masterdata over more than 1 page
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 18, 2017 11:55 PM   in response to: steven chesser in response to: steven chesser
Store <Page> value when TfrxHeader (StartPage var) and TfrxFooter (EndPage var) printed on the first pass, use this info on the second pass ( hide "continued on next page" text when <Page> = EndPage)
steven chesser wrote:
Fast-Reports 5.6.8 in Tokyo

I have a need to modify headers when data cross over in the next page and so on. Basically i need to modify a part of a memo field on the header
to say "continued on next page" , sounds silly but what I have to duplicate from a very old report.

I figure I have to do a two pass report possibly, then on one of the events of the header to check the masterdata band to see if it passes over into more than 1 page.

So if it crossed 3 pages

I would see

MyHeader < Continued on next page >

MyHeader < Continued on next page >

MyHeader


That way first 2 pages get the text added, while the 3rd page being the final page it was on, doesn't need it as it ended there.

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02