Crystal Reports || Show Text when Report is Blank - crystal-reports

​I have a crystal report which has 5 subreports. When there is no data then the report is coming as blank which is working as expected.
Now I have added a new Report Header section in the main report and added a static text (not from the database). So, when I am running the report whether it is blank or has data, the new section should be visible. So, it this section is visible only when the report has data. When there is no data, then this section is also not visible.
There is no suppression or formatting in this section but still, it is not showing in case of a blank report. I tried adding New Page Header Section also, Page and Report footer section also but it is not coming in any case when the report is blank.
Any suggestion to show that section in both cases, with and without data?

I have posted the same question on sap website and had long discussion. If anyone facing this issue, can check the thread at below link
https://answers.sap.com/questions/13453443/crystal-reports-show-text-when-report-is-blank.html

Related

Crystal Report - Suppressing footer until last page - creates empty white space on other pages

I've made a new crystal report.
I have some terms and conditions and a place for signature on my report footer. I have managed to suppress my report footer to only show on last page, I have used this within Section Expert
TotalPageCount <> Pagenumber
It works well and only shows on last page however on all other pages other than last I now have a lot of blank space that I could re-utilize and in effect cut number of report pages. Can someone recommend a setting that I might be missing or piece of code to do that please.
Adding image for reference :

How to show TextObject on Crystal Report preview/print (Details section)?

The TextObject "I. PENGEMBANGAN SISTEM & PROSEDUR" won't appear on preview/print mode, only appears on design mode. Please help and show me step by steps. I'm new to this Crystal Report, Thanks.
Here is design mode ScreenShot:
Design
Here is preview mode ScreenShot:
Preview
Crystal report works in following way:
Report Header //Prints once for report same holds true for report footer
Page header //Prints for every page same holds true for page footer
Details //Prints for every record
When certain section doesn't fit in space left in a page then the whole section will be pushed to next page, In your case since you placed your data in detail section and data in detail section doesn't fit in page 1 full section is pushed to page 2, hence you are able to see in page 2 instead of page 1
To solve this Right Click Page Header --> Insert section Below
Now take your data from details and place in page header
This is one way of solving the issue, let me know your input

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.

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.

Page Footer not showing in Crystal Report

I am using Crystal Reports in Visual Studio 2008. I have about 5 pages worth of static text that needs to appear at the top of my report, so I put it in the report header section. I have a page footer section on the page that shows the page number. This does not show, and I suspect it has something to do with the long report header. How can I make the page footer show with a large report header?
Edit: The Page Footer is actually appearing once on the last page. The Report Header takes up 5 pages and there isn't a page footer on any of those pages.
Can you split static text between many header (sub)sections (in a way that every section has about pageful of text)? May help.
I had exactly the same problem. My report header was very long and the page number only was appearing at last page. The problem was that i had my page number in the Report Footer. Then i realize that i had a Page Footer section and moved the page number there. I also changed the section properties (it had the No Drill down option checked).
Now i have the same big header with the page number on all pages.
Bye
Ken Hammady has a solution for crosstabs at
http://kenhamady.com/cru/archives/87
It can be adapted to work with long texts in textboxes.
I moved all of my text from the Report Header to the Report Footer, and the page numbers will print. I will add a subreport to show my detailed data.