How to display sub-report on the top of the group? - jasper-reports

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.

Related

Keep different groups on the same page in 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.

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.

SSRS ReportViewer Control linked report does not start at top

I am using an SSRS ReportViewer Control (2008) On a web form to display an SSRS Report. The SSRS Report has links to many other SSRS reports. When I click on one of the linked reports, I get unwanted behavior.
Instead of the top of the report being visible as I would expect, the report starts out at the bottom. The scrollbar on the right in the browser window is at the very bottom, and I need to scroll up to view the top of the report.
I don't want my users to have to scroll up every time they navigate to a new report. Is there a way I can force the report start at the top? (So the scrollbar on the right hand starts at the top)
I do not see this behavior when I am previewing the report in Visual Studio 2008.
Thanks
which browser are you using? I know that Chrome does not Support report manager for example (the reports are cut in half).
Take a look at this link and this link, they may help you.

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