I'm still new to Crystal Reports, and am completely stumped. I have a table of 100 accounts (fields are acct_id and sub_ind, which is '1' for all 100 accounts). I want to suppress the subreport only if the account is on the table. I've tried multiple possibilities in the suppress formula (x-2). I've gotten the entire report suppressed for everyone but the accounts on the table; I've gotten the subreport suppressed, except that a box comes up where the subreport would be. Is there a solution that would suppress the subreport only for the accounts on the table?
Thanks for your help!
If you're seeing a black box outline, right click on the subreport, go to Format Subreport, click on the Border tab. Make all of the Line Styles "None".
If you have the subreport in its own section you can right click in the grey part part to the left of the screen, go to Section Expert, and then under the sections find the section where the subreport is located and click on it. On the common tab about 1/2 way down you'll see a "Suppress Blank Section", click the check box.
Hope this helps.
Related
I am using Crystal Reports 2016. I have got a report with subreports of which the following are my subreports of interest for this question:
resultFormat8 - which is a crosstab report.
resultFormat1 - which is not a crosstab report - and THIS IS THE ONE i DO NOT WANT DATA split between different groups on various pages. I guess it is splitting because the subreport is grouped by TEST.TEST_NUMBER. How can i get all the results to show on one page and only move over to the next page only if there is not enough space.
Currently even if one group has just 2 rows of data, the next group starts in a new page essentially wasting almost the whole page.
The relevant subreport is grouped by TEST.TEST_NUMBER - and hence data for each TEST_NUMBER starts on a new page.
I have tried the following:
In the Section Expert, turn off 'Keep Together' for the section that the subreport is in.
Within the subreport, turn off 'Keep Together' from Group Expert for the Test_Number group
None of the above has helped.
Any help is appreciated.
Regards
Geeta
The Keep Together check boxes in the sections won't work to keep groups together. To do this you need to change the Group Options settings. Here is how to do this in Crystal Reports 2016. There are 2 ways to do it.
Option 1
Open Group Expert by clicking "Report" > "Group Expert" on the File Menu Bar.
Select the appropriate group by field in the right panel of the Group Expert window.
Click the "Options" button found on the lower left corner of the Group By panel to open the Change Group Options window.
Click on the "Options" tab in the Change Group Options window.
Check the "Keep Group Together" check box.
Option 2
While in the Design View of the report, right click on the Group Header for the group you want to keep together. Then click on "Change Group". This will open the Change Group Options window.
Click on the "Options" tab in the Change Group Options window.
Check the "Keep Group Together" check box.
I have created 5 sections in crystal report and I want section 3 to be on top of section 2. I tried dragging the sections but nothing changes.
I have found the answer under Section Expert. Highlight the section you want to rearrange the click the arrow beside the Merge Button. Changes will appear after clicking OK.
I have created a sub-report and I have empty place in the right side of my custom_group in my master report. I want my sub-report be in this position (in the right side of custom_group in the master report).
Does any one know how to do it in iReport?
Are you just looking to move the subreport? Click the subreport in your master report. In the Properties menu, set the Left position.
If you're looking to do more than just move it, post your JRXML file so we can take a look at it.
You need to modify the subreport and set the margin for it to 0. For that open your sub-report in iReport, in the Report Inspector right click on the report and click Remove Report Margins. Then save your sub-report and re-run the parent report (hit the compile report icon on top of the Report Designer to enforce the re-compile of all report resources): the sub-report's margin will be gone, there won't be any whitespace on the left side.
I am trying to modify a report for a company but the code editor seems to be uneditable. The report has s details section where I want to conditionally suppress rows. When i click on the X-2 editor for the Suppress Blank Rows section the Non Drill Down section's code editor view contains code, but cannot be changed. The background is grey and cannot be changed. Does anyone know how or where to edit the code for this section?
I have a Section that only contains a SubReport.
I have a formula on "suppress (no drill down)" that hides the subreport. This works.
However it leaves a big blank white space where the subreport would have been if it was visible.
I have ticked "Suppress Blank Section" and unticked "Keep Together" on the surrounding sections without any effect. How do I change it so my hidden/suppressed section does not display any empty white-space?
I am using Crystal Reports 11.
UPDATE It may not be the blank sections causing the issue, could it be the 2nd sub report which I do want to show is 2 big to fit on the first page so just starts on the 2nd page. I have unticked "New Page Before" and "Keep Togeather" for it
OK, I sorted it out.
The problem was the next subreport / section I wanted to show was too long to fit on the first page so was starting on a new page each time.
To fix I had to right click the subreport click "format subreport" then click the subreport tab, then untick "Keep Object Togeather"
You will have suppress blank section in the sub report as well. Try checking this suppress blank section in all the sections of the subreport. It should work for you
Use same or similar formula (which you use for subreport hiding) for main report section supressing too. "Supress blank section" doesn't work well with subreports.
Right click on the subreport. Format Subreport -> Subreport -> Suppress Blank Subreport.
This option is available at least on version 11.5.x