Keep different groups on the same page in crystal reports - crystal-reports

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.

Related

How to see and edit sections which have been conditionally suppressed without unsuppressing them?

I'm trying to make a minor fix to a Crystal Report that I have inherited. I can't see the section that has the field I need to fix, so I can't tell exactly where the field is. When I bring up the section expert I can see that there are several sections that are suppressed. But the suppression condition is something like "Pagenumber>1", meaning that the section is always going to show up on the first page of every report. But I still can't see the section so I can edit the fields. How can I make all sections visible for editing, regardless of their suppression conditions, so that I can find what I am looking for and edit it?
I have tried removing the page suppression temporarily, and that works, but this is rather clunky and time consuming when there are a lot of suppressed sections.
If you right click in the designer within a section where there are no fields, you should get a menu that has an option called "Show Hidden Sections in Design". Click this option on the menu to enable it and that should allow suppressed sections to show in the designer. Suppressed sections will have diagonal lines running through the background to make it apparent that they are suppressed until a condition is met that allows them to be displayed. Here is a screen shot showing the menu with the option I'm referring to highlighted with a red box.
Alternatively, if you can't get this menu to display with a right click, you can access this setting through the File menu. Click "File", then select "Options..." to open the Options window. On the "Layout" tab of the Options window you will find the "Design View" group in the top left corner of the window. "Show Hidden Sections" should be the last check box in this group.

How do I rearrange sections in Crystal Reports

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.

Hide or Disable Crystal Report Parameter Panel

I have a crystal report that displays a bar code that will dynamically change.So I used a parameter for setting the image streaming URL and it works fine, but I don't want to show the parameter panel on the report. How can I achieve this?
try below to supress
right click on the object and go to format --> Common --> check supress
With your report open in CR, go to File → Report Options → Then uncheck Show preview panel. Note that this will also get rid of your report's group tree in the same panel.
To remove individual parameters from the panel, edit the parameter and set Show on (viewer) Panel to Do not show.

how to suppress subreport in Crystal Reports

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.

Crystal reports suppressed section still leaves blank spot

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