Crystal Reports - repeat page header when data changes - crystal-reports

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

Related

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

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.

Display report header in every page of cross tab in Crystal report

I want to display report header in every page of my cross tab report in Crystal Reports 13. Currently the header only appears on the first page. How can I fix this problem? Kindly suggest me.
Check bellow screen shot
Page 1:
Page 2:
Design View:
Right click on the selected fields in report header and go to format and check option Repeat on Horizontal Pages so that it applies for every page
Finally I solved the problem to display header for cross tab report in each page.
1.Create a formula using bellow code
WhileReadingRecords;
""
2.Create a Group Field using that formula field (which is empty group)
3.Crete Cross Tab Report inside of group header section.
4.Finally place my report header inside of page header section.
Now its working according to my demand and display report header every page
Thanks all of you
Check bellow screen shot
You have to do following things:
right-clicking on the row header
select Row options
select Repeat Labels on Page break
Crystal Reports lets you designate report objects that don't expand horizontally, such as text objects, field objects, OLE objects, charts, maps, lines, boxes, and so on, to be repeated on each additional horizontal page that a Cross-Tab creates.
Check this for help.
Also, similar question How to repeat Crystal Report Header on each page answered by me here. If you still after this links don't get solution, feel free to ask so we go into details of your cross-tab etc...
There are two kinds of headers in Crystal Reports. There are Report Headers (which you're currently using) and there are Page Headers (which are what you want to use in this case.)
A Report Header will only display once - on the first page.
A Page Header will appear on every page. (Unless you
specifically tell it not to.)
Move the circled fields into a Page Header and suppress the old Report Header you were using before. If all goes well, you'll see the circled field on every page going forward.
One other possible approach would be to insert a separate section above each crosstab that will contain your repeating Page Header. (Section Expert -> Insert) or (Right click Section -> Insert Section Below)
Then for the aforementioned inserted section, force a page break before. (Section Expert -> New Page Before)
Repeat this step for each Report Header section that contains a crosstab. The downside is that you will have many pages depending on the number of crosstabs in your report. Hope it helps.

How to hide page header in crystal report

I have created a crystal report to show the English Exam marks for students and walk-ins for my project. The information is shown in two sub reports(1 for students and other for walk-ins). There is no information to show on the page header or the report footer while on page footer i display the page number, print date and print time. Now I wanted to hide/suppress the page header(since it contains no information). I tried suppress blank sections and suppress(No-Drill Down). But both these does not do the desired. Now the Page Number 1 has no information and is blank. If we take a print out, it is a waste of 1st page. Please provide me some help.
Thanks
If page header has no information then instead of using supress blank section directly supress the page header by right click on page header
dear if your header have text then use the formula field for the header
go to the toolbar and in the formula field create new formula like
if(condition) then
your header text
else
""
also take look to the following link Book
and if you want to suppress you header the also make it suppress by formula
right click on the header section and click on section expert and in the popup window write formal for the suppress same as above
:D

Crystal: Cannot show page footer when using Fortmat with multiple columns in some pages

I am using Format with multiple columns and expand layout width for Detail section to show many columns. And when my report show data in the expand detail section, it do not show page footer.
Could you please help me fix it?
Please following this for more detail
Your report setup is quite strange. Why don't you move your PO and Customer Name field next to ship date and get rid of the excess page? You can also delete your Page Header B, Group Header B and Details B since there is nothing in them. But if you have to keep the current layout, in order to see the footer on the other page you will have to add it to the other page, just like the Group Header above.

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.