I have tried all the related topics on Stack Overflow I could find relating to this problem.
So I hope there is someone clever that can assist.
This is the layout of my report:
Now as you can see Group Header and Details a & b contain Subreports. Details B however is suppressed and hide blank sections.
Now Group Header #1 is in the section ticked as Suppress Blank and Keep Together. I also went to each individual Sub report and set the details sections to Suppress Blank and also went from the main report right clicking on each subreport and set in the uncommon tab unticked the keep objects together as well under the subreport tab I checked the option to suppress blank sub report.
But as you can see there is still blanks printing as this is the info which is suppressed for a condition I have set....
Anybody have any ideas?
Related
I would like to display only 4 pages on my Crystal report, however, I am getting an extra empty page. I cannot pin the reason to what sounds like a trivial issue.
My report has the following:
- No fields in the main report - This is not avoidable.
- One sub-report.
- In order to have the sub-report header repeat I followed this method described here. (I just do not understand what the formula means and whether this is the reason for the extra page but I am getting a header as I require).
I am suppressing the pages in both the report and sub-report as follows: in the suppress I am using
if pagenumber>4 then true;
I tried to put in all my sections
Not(onLastRecord)
I am simply lost. All I need to do is print 4 pages only regardless how long the report/sub-report is. I also need the sub-report to have a repeating header. Thanks.
Try to reduce the size:
-If possible supress group and report footers
-Right Click on each section you can and select "Fit Section"
-Change the color of some sections so you can see if any responsible for the extra page
-Maybe the paper is set to letter ? : Go Design - Page Setup, set A4 or you can also try no printer to see if something changes ( this last one will change the format of your fields so backup before)
If you have any footer sections that are not being used, try suppressing them. This will remove empty white space that is added at the end of the report. Another option is to adjust the size of your top and bottom margins, providing there are no design conflicts in doing so.
If you have any white space at the bottom of the sections that appear at the end of the report you could also reduce the height of that section to remove the white space.
How do I suppress a blank section on my report? I have tried suppressing with
if Count({MyVariable}) > 0 then false else true
and
IF {OnLastRecord} = "" AND pagenumber=TotalPageCount
THEN TRUE
ELSE FALSE
What am I missing? It is hiding the data but not the header. Another table is hiding the data and that is a very long Subreport that should be hidden if there is no value.
It almost seems like this is a bug. I've tried suppressing everything. Shouldn't suppress blank section work?
To suppress a blank section check the Suppress Blank Section. This just works.
If you want to suppress a section that contains a sub-report that seems to be empty, there are several places you can check:
make sure Suppress Blank Section is checked for the section that contains only your subreport (otherwise it wont be an empty section)
make sure Suppress Blank Subreport is checked in the Subreport section of Format Editor of the subreport
within the subreport (open the subreport to edit, double click from your main report) go to File | Report Options and check Suppress printing if no records. This will suppress your subreport when there are no records - even if you have static elements, like text in the subreport header etc.
I had this problem the issue was the section had a box in it so was never blank. I found it worked if I put the formula in the "Suppress (No Drill-Down)" option for the section instead of in the "Suppress Blank Section" option.
I have crystal reports XI, I am new to crystal reports and am not tech savvy, so please consider that in your reply. There is a section that does not populate at all when the value is zero. The whole section disappears on the generated reports. I need the section to show and I need the zero value to show. Any suggestions?
do a right click on that section(where the section name is), go to section expert and on the common tab see if you have something under Suppress(No drill-down) X-2 button(might be red). There should be a condition that is suppressing the section when the field takes 0 value. You can suppress that condition putting // in-front on it or just delete it. You may also check if Suppress Blank Section is checked, if so remove the check mark.
crystal version 11.5.12.1838
I'm trying to get images to print in the report footer section, with one image on 'report footer a' on one page and a new page with a different image in 'report footer b'.
I cannot get this to work and only the page and image contained in report footer a will print. There are no suppression formulae in the report footer section (actually no formulae of any description in this section). Is it possible to do this?
[edit 1]
This is a subreport and it looks like there is some hard limit on the number of pages in the overall report. If I add a report footer b, c, d and put images in them and set "new page after", none of them are printed. Also tried adding background colours to each of the report footer subsections - still only get 'report footer a' followed by a blank page.
[edit 2]
The whole subreport is set to be suppressed if a variable=0. The strange behaviour I'm seeing now is that if the subreport is not suppressed (with the suppresion formula still present), then only 'report footer a' in the subreport is shown. If I remove the subreport suppression completely, then all of the report footers print. Looks like a bug but I can't find a workaround yet.
[edit 3}
Tried reimporting the subreport with the same results. Tried moving the images into different subreport sections with the same result. It seems that the subreport will not print more than two pages. I've toggled 'can grow' in format subreport and this has to be checked for the subreport to display at all. The 'number of lines' box next to can grow is always greyed out.
You should be able to achieve this in the Section Expert by either:
Checking New Page After in the Report Footer A section
or
Checking New Page Before in the Report Footer B section
I've found a workaround. Looks like a bug in crystal where using a shared numbervar in a suppression formula for a subreport was having unwanted side effects. I've modified the subreport suppression formula and both images are now printing.
We are trying to modify a crystal report (estimate template) to print some legalee jargon on the Last page of a crystal report. The last page would only have the text which we have in Group Footer 1b. Group Footer 1A has the totals of the document and should print after the details section. Currently the Page Header prints on the page with the Group Footer 1B text and we cannot seem to find a conditional format on how to exclude the page header from printing.
Can't use the report footer because we have multiple documents(estimates) which print at the same time.
I would put that information in the Report Footer. The report footer will only print once at the end of the report. If you want to make sure this information always has a page to itself, go into section expert, select Report Footer, then find the Paging tab (Not sure which version of CR you are using. I'm using CR2008. Layout might be different). Check "New Page Before". This will force a new page when it reaches the Report Footer.