crystal reports how to display full page with header and footer per record in detail section - crystal-reports

I have setup a Crystal report which displays a header, detail (3 records) and footer sections. In the detail section, I only want one record to show per page but with the header and footer intact. So in other words, I want each page to show the header, detail (1 record) and the footer.
In the Details area of Section Expert, I have set the New Page After 1 record setting in the Paging tab. Following which the report now shows the header and 1 record in the first page, the second record in the second page (without a header or footer) and the third record in the last page with a footer. See picture below: section expert setting
My expected output is
Page 1
Header
Record 1
Footer
Page 2
Header
Record 2
Footer
Page 3
Header
Record 3
Footer

Use a Page Header/Footer for content you wish to see repeated on every page.
Or you can set grouping to result in a separate group per each detail section, and then use GH/GF sections.
In the section expert for the detail section, Paging tab, you can set the property of 'New Page Before' to place each detail record on a new page.

Related

Supress blank space between detail section and page footer in crystal reports

I have a report like this:
Page Footer b is just shown in last page;
And the generated report is like this:
Can I supress the blank space between detail section and report footer?
I need the report footer a in all pages.
Page Footer Section/Subsection will always print at the bottom of the page. As an alternative you can
Add/copy the contents of the Page Footer Section/Subsection to the Report Footer Section also.
Suppress the Page Footer Section/Subsection on the last page using the formula
PageNumber=TotalPageCount
It will print Page Footer on all other pages but not on last page. Contents of report footer will print at the end of the report, including your copied page footer content. But keep in mind that you have multiple Page Footer Sub-sections, you may need to apply the formula and format your report accordingly. Additionally care needs to be taken if your have formula, calculations in the page footer.
Along with above setting, if you want to hide vertical lines too, then you will have to draw the lines in two parts.
From Report Header Section to Report Footer Section.
For Page Footer Sections draw separate lines from first Page Footer to last page footer.
For formatting purpose you may also need to enable Extend to Bottom of Section when Printing option in Format Line

How to supress page header on report footer in Crystal reports

I have 4 page header section and all my terms and conditions appear on my page 3 onwards. 3-6 pages for terms and conditions which are in page footer. I need to suppress the header on my page footer.FYI, I had the issue of last section of the page duplicating on my nextpage.henceforth conditionally suppressed all my text object in the page header section. I'm unable to use pagecount on the section -> sectionexpert -> formula due to this duplication.

Report Header/Footer and SubReport

I have created a report (JasperReports) that contains Page Header, Detail, and Page Footer bands. The Page Header and Page Footer contain static content to compose a header and footer that should be printed on each page.
I want the Detail in a separate file (SubReport) so that I can update Page Header and Page Footer without having to make the same updates to multiple reports.
There is a SubReport in the Detail band. The SubReport has a link to a database and displays records, but does not need any information from the report. The records are displayed when you view the SubReport individually, and the SubReport is linked, but nothing is displayed in the main report, and the resulting document is 84 pages. I don't know why the result is 84 pages. The SubReport I am currently using is only 24 pages.
I was able to get static content to show by selecting "All Sections, No Detail" in the properties, but with an SQL Query in the SubReport, there should be data to display. How can I accomplish this?
After viewing this link: http://salilstock.blogspot.ca/2012/06/jasper-subreport-modularize-jasper.html, I attempted to insert the header and footer as SubReports in my main report. This approach seems promising.

Crystal Reports - repeat page header when data changes

I have a report that is pretty complex, with multiple sub-reports for each item selected. I want a main header for each item, and then a page header for that item at the top of each page. If I only select one item it looks great. If I have multiple items, that main page header only shows once.
main header
page header item 1
details
page header item 1
details
page header item 1
details
main header
page header item 2
details
page header item 2
details
How do I design it so that Item 2 main header shows up?
The details are a series of group headers (I inherited this report). Right now it has just what I want, except that the main header shows once and only once. It is in a Report Header section, the page header is a Page Header section, and all the rest of the reports (which can span multiple pages) are in various Group Header sections.
edit:
I can put both the main header and the page header in a Page Header a and Page Header b section, with the item id in both. Now, if I can suppress Page Header a if item id is duplicated, it should print it only with a new item id, and the page header b will still print at the top of each page.
Since a report only has one "Report Header", you'll have to organize your groups in a way that "main header" is a top level group, "page header" is a sub group, and finally details is below that.
Once you have that done you can then click on the Paging tab in section expert and click the New Page Before option in order to get the pages to break like you expect.
Edit:
Under menu Report, Group Export, in the Group By, there is an Options button, and then an Options tab. That is where the Repeat Group Header on Each Page option is. Then, back in the Section Expert for the Main Header Group, in the Suppress function, put InRepeatedGroupHeader. That way, the Main Header (GroupHeader#1a) is suppressed except for the first page for each item, and the Page Header (GroupHeader#1b) shows at the top of each page.
IN the grouping there are two Headers i.e. 1- Report Header (a, b, c etc) and 2- Page Header. Place the Fields (column names) in the Report Header and also the Same Fields (columns Names) in the Page Header.
Then in the Group Expert , Check the Radio Button in the Group Option to : "Repeat the Group Header on Each Page".
The Report Header fields will be displayed on the first Page and Page Header will be displayed on the rest of Pages.
I got my answer from this external post by brucevde on VB Forums:
What you need to do is setup your details section for multiple
columns.
Place the database field(s) in the details section as normal.
In Format Section dialog, click on Details and an option appears at the bottom called "Format with Multiple Columns".
Once you check this option a new tab called Layout will appear. Use this tab to setup your multi-column page.
When you click OK, Crystal will duplicate your details section to the right X number of times, depending on the width you have chosen.
Reply With Quote Reply With Quote

Adding a terms and conditions page to a Crystal Reports report

In Visual Studio 2005 Crystal Reports we have a simple report to the back side of this report. I need to add our terms and conditions page.
How to insert or add a second report?
Or
I need to mention our terms and conditions page on back side of main report.
How can I add this functionality?
If I understand correctly that you have one detail per page, which is displayed in the Page Header, and you have nothing in the Details section, you could do the following:
In the Detail section, insert a second Detail second so that you'll have Detail A and Detail B. Leave Detail A blank. Put the Terms & Conditions image into Detail B, go to Format Section for Detail B, and check New Page Before. The reasons for the two detail sections is sometimes CR doesn't respect New Page Before in a single Detail section.
Now, go to Format Section, and for the Page Header enter the following formula in the Suppress (No Drill-Down) formula editor:
PageNumber mod 2 = 0
You will now have one record printed in the page header, then a page with the watermark, then another page with a record in the page header, then a page with the watermark, etc.
You'll just need to make sure when printing to use full duplexing.