Display report header in every page of cross tab in Crystal report - crystal-reports

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.

Related

Suppress section if details empty on page X - Crystal Reports

I've been working with Crystal Reports 2008 for a while now, and while I get the general gist of it, some things seem quite hard to do, especially because I don't know what tags and proper syntax is allowed within CR.
Anyway, my problem is as follows: I've been making an invoice layout, but sometimes the Details-section ends at a page, but the section containing the invoice summary (including the final price and such) is printed on the page after that. That also means the Details header is printed the next page, with nothing between the header and the summary.
Is it possible to conditionally suppress Page Header D when the Details section is null on the last page?
Trying something along the lines of
IF {Section Details} = "" AND pagenumber=TotalPageCount
THEN TRUE
ELSE FALSE
I'm sorry if I'm making no sense; there is a drastic lack of coffee around here.
Try just using the keyword OnLastRecord for your Page Header suppression formula. The only situation I'm not 100% sure about is when your last page only contains a single record (the last record)... it might still suppress the header in that situation, but I think it's probably OK.
Right click on the report page header you want to conditionally suppress.
Section Expert -> page Header -> Check the checkbox for Suppress and click on the formula button on right side against suppress in same section expert screen and in the formula..just write Onlastrecord AND NOT Onfirstrecord
Done !! This way, even if one record is there, the page header will show else it will get suppressed if no more rows are present on next page in the corresponding details section. you can have report footer or any summary following the details without any ugly page header and lines showing.
Apply the same Suppress formula to Report Footer Section also if you don't want report footer on the last page.
Thanks to Abhilash in this SAP Forum

Crystal report - Watermark in subreport

I have a crystal report for an application form, which I have done by using an image as a water mark in the page header, and then have some fields to be overlayed in the details section by having the page header set to Underlay Following sections.
That all works nicely, but now I want to print another report with this: basically a cover letter which is the primary data set; which then calls my application form report as a sub report. However because subreports don't have page headers, I can't get the watermark and the fields to overlay with each other regardless of what keep togethor or underlay following sections I select on groupings.
Has anyone tried to do this before, and has been able to do it at all? I can't find anything.
OR has anyone created a watermark report, that then supresses the watermark for a subreport (basically reversing the logic above).
Thanks all.
If making a page header to underlay won't work, here's another option.
Make a top grouping that is the same for every record (e.g. the company the grand total of the report is for.) In Group Options, check the box for "Repeat Group Heading On Each Page." In Section Options, check "Underlay Following Sections."
Now, whatever you put in that header will be repeated on every page and everything else will go over it.

Crystal Reports (Visual Studio 2010) - please help with page template

We are trying to create Crystal Report but have a problem with page template creation.
Report looks like this:
It should be "stamp" in the right bottom corner of page. First page stamp looks little different from other pages stamp.
At the left part of page on the left margin two objects are placed. Both of them oriented vertically and should work as header and footer (should be shown on every page) but take more room than required for usual header and footer. In this case we can't use usual header and footer to place these objects.
Tables on pages should work as "background" because even 1 record on page should show 20-row table (with first row filled in this example)
It would be great if we have something like "left running title" but we can't see such feature in CR.
I attached couple images to show how the report should look (sorry, i can't post images here because have no enough reputation points):
First Page Second Page
Could you please say how such report template can be created? We have no skilled CR developer in our company and have no idea which way of report creation can be used :(
We also agree to use another report engine if it is free and can work with .NET applications
Thanks for help
Dmitry
You can use underlay property of the sections to get the desired result. You can use the page header and page footer for putting the details and for page-header, set the underlay property to TRUE and for the footer, set the property of the detail section (I presume, you have a single detail section in the report) to TRUE. This will make the details of the header and footer display beneath the detail section.

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.

Does Crystal Reports have an equivalent of a master page?

Let's say I have a logo that I want to appear in the same place on a set of reports (many files). Is there a way for me to put that logo into the equivalent of a master page and apply that master page to all the pages of my reports? I'd like the logo to appear in the same place on a variety of documents without having to mess around with copypasta.
Using CR 9.2 (ouch, call the archeology dept eh?).
The easiest way to do this is to add a new header or footer section that includes your logo.
In Crystal 2008 (sorry, it's all I have) this is done by right clicking on any of the header/footer sections (e.g. Report header, page header, group footer, etc.) and then selecting "Insert Section Below".
This gets you a new section that will repeat at the top or bottom of every new section/page. Any logos pasted into a page header will be reused for each page.
Note that you can have as many "page header" sections as you want if you find it helpful to split up the header into multiple vertically stacked sections.
Years ago they used to have an page header and page footer. Not sure about the current version of Crystal Reports.
you can create a report as [MasterReport] with the logo in any where of it then you should insert a subreport into it. MasterReport equivalent of the master page and the subreport is like the placeHolders in asp.net and you can create this subreport like a dynamic report.
When you add a subreport to a report, crystal reporter creates a copy of subreport and save it into main report so you can not change the subreport by code at run time.