Repeat header on every page - crystal-reports

I want to repeat the header with the image (Report Header a) on every page
and display the page number at the bottom of every page. But I want (Report Header c) to come after the image.

Turn both Report Header A and Report Header C into Page Headers, then use this formula in the suppression logic for Report Header C:
PageNumber <> 1
This makes the header with the image display on every page, but the header with Date Prepared will only show up on the first.
To display the Page Number on every page, move Page N of M to the Page Footer.

The report header show only once per report... so you have to use the page header.
Right click on the page header section > insert > group > options > mark the checkbox "Repeat Group Header on Each Page" and voila.

Related

Page Header, Page counter and Page Footer layout not working

I have a main report and a subreport i.e main.jrxml and sub.jrxml with the following problems:
On second page the current page number is not incremented
On second page and onwards the Title and Page Header are not fully removed
On last page the Disclaimer and page number is missing
.jasper file is not always re-generated for subreport in Jasper Studio, how can I make sure this is per default always re-generated
I run the reports with the Sample DB. How can I fix this?
CLARIFICATION:
For the page numbering on the TextField I use:
msg("Page {0} of {1}", $V{V_CURRENT_PAGE_NUMBER}, $V{PAGE_NUMBER})
V_CURRENT_PAGE_NUMBER is defined as follows:
Expression 1
Initial Value Exppression $V{PAGE_NUMBER}
Increment type Page
Reset type Report
In the end I used Composite Elements for both current and total page info.
UPDATE:
Point 2: Moved Page Header content into Title.
Point 3: I solved by repeating Disclaimer and page number also in Last Page Footer. I have it now in both Page Footer and Last Page Footer.
Use the Page X of Y element from the Composite Elements of the Palette view.
Only the Page Header repeats on subsequent pages. You can show it only on first page with a Print When Expression like: $V{PAGE_NUMBER} == 1
Duplicate the Footer elements in the Last Page Footer.
From the top menu select Project > Build Automatically

Crystal report scroll like header

I am trying to create crystal report that has dynamical scroll like header section.
i want a header section that depending on its size may go on second page just like detail section does. the twist is that header consists from multiple small header sections that are not static :/ sometimes one of those might be suppressed and other times not.
for example:
we have H1 H2 H3 H4 H5 D1 F1
i do not want header 1 to be repeated on every page which i can easily suppress
but what can i do for header section 2 ?
I do not know will it be printed on second page or on first ? it may be also printed on third, depending on the length of first header section.
so what i want to know is:
1) how can i dynamically grow header section on next page
2) restrict section from repeating after first print
if anyone knows how to do this please help
thank you in advance

Fix Page Header Height in Crystal reports

Is it possible to fix the height of page header or any other solutions?
My problem is I need to do this list of persons in page header
Boy Janna
Girl Leo
Ana Erick
Mina Carlo
Lea Shena
But it must be like this
(for page 1)
Boy Janna
Girl Leo
Ana Erick
(next page)
Mina Carlo
Lea Shena
If number of person is 6 or lower it will only appear in first page (if two page report the second page must have blank person). If the number of person is more than 6 the number 7 person and up will appear to next pages and so on.
The maximum row is 3 per page
This Sub report is in Page header in main report
I put this code in supress of Sub Report for Persons. If I don't tick the Can Grow and adjust the text box (it only shows 6 names) and other names are now missing and not appearing in the next page. If I tick can grow and remove the below supression code what happens is it shows repeated name each page.
if PageNumber = 1 then
false
else if PageNumber = TotalPageCount then
true
else
true
Thanks in advance
yes you can do it in group header or footer and the process you followed won't give you correct results. Follow below process.
In grouper header or footer take a sub report and place only those fields in the sub report that you want to display.
In sub report place the field in detail section and then go to
Right click Details --> section expert --> paging --> tick the check box visible records
In the space provided input number of records you want to view per page and no go to preview.
You can see those many records per page in group.
This is working solution I tried group header and group footer of a group.
Let me know if you face any issue.

How to Suppress Header

I am working with Crystal Report, I have data which is grouped. Below I am attaching the designer view of the report.
The issue is: my header repeats on every page, if my Sub report goes to second or third page, or as long as it grows..
How should I suppress my header if the detail portion of the report only occupying the first page ..?
try like this:
in page header ``supress`
if pagenumber=1
then true
else false
In your group expert >> Click on "Options">> Select "Options" tab >> uncheck repeat group header on each page.

Fix the size of details section in crystal report

I m using crystal report in vs2010.
I m generating Tax invoice report..in that, details section size is dynamic.
i.e. depend on number of records, it changes. so if i've 10 records the report view is full page that is k ..but if i have 2 records in details sections, then whole page footer section getting stick to details page..so whole alignment is getting change
Try changing the print at bottom of page property in the select expert. That should do the trick.
1)First of all fix height of detail section by right click on detail section ->section expert->New Page Before checked->beside button of (x+2) write formula(Suppose you want 7 records in per page and further on another page -> IF Remainder (RecordNumber, 8) = 0 THEN TRUE ELSE FALSE
2)under detail section (suppose section3) is your detail section then leave report section blank with needed space and else for footer put it in page footer .. i think this will solve your problem.. mine is solved..
In my case in the New Page Before checked add:
IF Remainder (RecordNumber, 18) = 0 THEN TRUE ELSE FALSE