What is the use of suppress in Crystal Reports?
Is it possible to delete a section (page footer) in crystal report?
If yes, then what is the difference between Suppress and Delete?
Surpressing can be used in formulas, to allow the developer to surpress a section if a certain citeria is met. Or you can surpress the detail of the report if you wish to show a summary report.
You can surpress the page footer.
You can hide or suppress any section that you want. Hide allows for drill-down. Suppressing a section hides it and prevents drill-down.
Bare minimum, you need a report header, page header, details, page footer, and report footer sections. These can not be deleted.
You can additional sections of a given type by right-clicking the desired section and choosing 'Insert section below'. The name of the section will append a letter, starting at 'A' to the name to indicate multiple sections of the same type. If there are more than one section of a given type, then all but the last of these can be deleted.
Adding grouping adds a corresponding group header and footer sections. These behave the same way that I've discussed. Groups can be deleted.
Suppress leaves the section in the report. In addition, if you have formulas in that section that are set to execute WhilePrintingRecords, they will run, though they won't display results.
Delete a section means removing it from the report. Suppress a report means hide the section when viewing or printing the report. This is important when you want to only hide a section under some conditions.
Related
I am trying to display a certain message in the Report Header section based off if the Report Footer section is suppressed.
I need something like... ifSuppressed()
Does something exist like that in Crystal Reports?
In case something similar does not exist... here is my ultimate goal.
I need a value to be determined in the Report Footer section. If said value is greater than another value then I need a message to be displayed in the header.
The problem which I believe is that one of the values used in the calculation in the footer is from a sub report which I had to put in the Page Header to get what I needed. Therefore, I could not pass the value above the Page Header to the Report Header so I am trying to see if I could determine if a section is suppressed (Which is based off some variables in the sub report) and go from there.
Sorry if that is confusing and can elaborate if needed.
Of course after I post a question... I typically figure it out.
So here it is.
I created another formula to grab the SUM I was looking for with the running total.
I also created a formula to grab the amount I need to compare to (Which was from the subreport).
I then created an additional header so I have now header 1 and header 2. I put the subreport in header 1 and the two formulas in header 2. This way I can grab the sum and pass the number from the footer to the header because the subreport is above in header 1.
I then could do my comparison and display my message correctly.
I have a requirement in crystal report, where we have to show details section and report header together, so data will be displayed in a same row and according to the input the detail section can also grow in both direction row wise and column wise. Please use the sample picture for reference.
Is there any way to keep them together like in HTML where we can divide any table into one or more columns?
Any kind of information would be appreciated. Thank you.
In crystal it is not possible to add detail section in report header part..
How ever you can split detail section to multiple layout!!
1 - Right click report body then select Section Expert.
2 - Select multiple column.
3 - Then on layout you can provide detail size and gap detail.
Also you can insert multiple detail section and can swap inside the detail section. but not in report header part
It is possible for this purpose you need to use sub reports.
create a sub report and place in header section. Now limit the width of the sub report to the extent you need.
In sub report place the fields in details and supress rest all sections.
Now you can see header and details in report header..
Can you share along with sub report what you want to view in header?
You can use sub-report or setting up the section expert option.
Go to section expert
step 1: Suppress page header
step 2: At report header mark Underlay Following Section
Section Expert
I am using Crystal Reports with VS-2005.
I have a report with a report footer section comprising of sum totals of a column. The problem is that in some cases, the records consume the entire page and the report footer alone appears on the next page. It looks awkward. I want the report footer to appear just below the last record row ended.
Is there any trick to make the report footer section fit on the last page itself?
If you aren't using grouping, try this:
Add an additional section below your last detail section.
In Section Expert, mark the detail section Keep Together.
For the suppress formula for the new section, specify Not OnLastRecord.
Move the content from the report footer to the new detail section.
If you are using grouping, do this in the last group footer instead, and in Group Expert, mark the group Keep Group Together.
There are 2 subreports in detail section of my report.
I have enabled suppress blank for subreports.
Now i want to suppress detail section if both subreports have no data i.e. both are suppressed.
I searched a lot on web but did not find a solution.
I'd first recommend against inserting subreports in the details section if at all possible because the subreport will be run for each record that the original report retrieves. If the report has 1000 rows it would be similar to running 1000 reports (thought not exactly).
That said, you have a couple of options.
You should be able to go into the section expert and check "Suppress Blank Section" for the Details section if you've already suppress the subreports.
If that does not work for you, you can create a formula field in each subreport that contains a shared variable that you populate the row count of the subreport. Then in the Suppress Formula (X+2 button) for the details section in the section export you can use those shared variables to enter a formula for the suppression of the section.
Here are a few links on using shared variables:
http://msdn.microsoft.com/en-us/library/ms225625(VS.80).aspx
http://books.google.com/books?
id=eukKHY9wjAEC&pg=PA316&lpg=PA316&dq=crystal+reports+passing+data+from+subreport&source=bl&ots=O8BzfeMJOK&sig=kt2v5JPbgy1bofCG6mFy4b5Qybk&hl=en&ei=wyKhSoWeHoqDngf4xZ35BA&sa=X&oi=book_result&ct=result&resnum=8#v=onepage&q=crystal%20reports%20passing%20data%20from%20subreport&f=false
Is it possible to have a report which has grouping on the underlying data but for which you can disable the grouping via a button or something on the report? Basically I want to have a "Summary Report" which is grouped, but then be able to view the detail beneath when required without having a separate report for it.
Put your data in the group headers and footers, then have the detailed data in the details section. In the details section, set a formula on the suppress to be based on a report parameter. Then when you want a detailed report, pass in the parameter as false and it won't suppress the details section. You can toggle the header and footer of the groups this way too.
You cannot get rid of a grouping, but if you wanted to have something similar, you could use a field that you populate to group by. If you want the grouping, you fill in this field with the data you need to group by, and if you want the detail, just leave that field set to blank and then suppress the group header and footer.