subreport

Hide space between elements of a report

好久不见. 提交于 2020-01-16 00:34:25
问题 I have one report with various subreports. These subreports are within a table cell. When the subreport doesn't have any data available, I hide the components (tables, textbox, charts) in that subreport. However, this creates some blank space and I need to eliminate this space. I already used the properties ConsumeContainerWhiteSpace and KeepTogether , but the blank space is still there. Any suggestions to remove the blank space? 回答1: To hide or show an entire row based on another reports

JasperReports: Subreport renders multiple times, causing duplicate pages

我怕爱的太早我们不能终老 提交于 2020-01-15 07:37:28
问题 I am using JasperReports to generate a graph and table for a web application using two separate queries. My main JRXML generates the graph, and I include a subreport in the Detail band to generate the table. However, when it renders, the subreport seems to get rendered multiple times (12 to be exact), which results in the generated report being the same graph and table on 12 pages (exact duplicates of each other). This happens both through the online application and iReport . My main JRXML ,

jasperreports subreport not splitting

泄露秘密 提交于 2020-01-14 14:28:09
问题 I have a jasper-report that has several subreports. Most of them work fine, but for some reason one of my subreports does not split if it becomes long enough to reach the end of the page, instead it jumps back up to the top of its detail section and continues writing there, overwriting the previous text. I can't see any difference between this subreport and the one that work right. Currently my project uses jasper-reports 1.2.5, but I tried upgrading to 4.0.1 (just for this one report) and

Linking subreports in iReport so they also work in Jasper server

夙愿已清 提交于 2020-01-10 08:30:07
问题 Using iReport v4.0.1 with Jasperserver v4.1.0 I'm trying to find a syntax for linking subreports to the main report that lets me test it in iReport then deploy to the server through the repository browser. The default syntax for sub-reports in iReport for the subreport expression is something like $P{SUBREPORT_DIR} + "mySubReport.jasper" When you deploy this from iReport it's smart enough to pick this up and suggest changing it to "repo:mySubReport.jrxml" and to then deploy all subreports to

Cannot go back to main ssrs report from a drill thru report in Chrome report viewer

有些话、适合烂在心里 提交于 2020-01-07 05:16:07
问题 I have a SSRS report with includes a Drill Through report. When I run the report from Report Manager and click the link to go to the Drill Through Report, there is a 'Back' button so the user can go back to the main report. When I display this same report in my AngularJS application that has a Report Viewer, I can go to the Drill Through Report when I click the link but I cannot go back to the main report. If I use the back button on the Google Chrome Browser, I have to re-enter all of the

Crystal Reports: including a subreport into a grouping section?

痞子三分冷 提交于 2020-01-05 06:26:24
问题 I have a report which lists out a company detail. There are two sections to the company detail. The first portion lists out environmental data and the second is actually a subreport which lists out Cash flow details for every single year of the company. I have multiple companies i need to do this for--so i grouped the report by Company. This works like a dream except for when it comes to the subreport. I'm having real issues trying to get it so that every single company has a different

Jasper report split type

北慕城南 提交于 2020-01-05 05:28:07
问题 I am using jasper report to export my reports to word document. On the detail section I have sub report. I have a problem with band split type. When I choose split type stretch or immediate I got the below problem. When I choose Prevent split type I don't get this error but this time there are lots of white space at the bottom of page if row space more than remain band height. How can I split my data partially at the bottom of page without border layout error? sample code. just copy and paste

How to increase subreport's textField height as the height of master report's textField?

∥☆過路亽.° 提交于 2020-01-05 04:25:10
问题 I would like to resize subreport's text field (before include into main report) like the highest main report's text field. As you can see the subreport's text field does not have equal height. 回答1: You need to work with stretchType , you can't set the height dynamically in any other way (not considering via java code) On reportElement tag you have the attribute stretchType , which you can set to RelativeToBandHeight or RelativeToTallestObject . I would go for: stretchType=

Printing a sub report data horizontally

偶尔善良 提交于 2020-01-03 06:19:06
问题 I have a requirement where in I need to print the data in my sub report in horizontal order rather than vertical. However the master data is still to be presented in vertical order. The report presentation is something like this below where the Subject column would grow horizontally for each record. I have tried keeping the Subject records as a subreport to the main report but it does not get printed horizontally. TeacherId TeacherName Subject1 Subject2 Subject3 1 Tom Physics Chem Bio 2 Sofie

Sub-subReport execution returns “java.lang.OutOfMemoryError: GC overhead limit exceeded”

情到浓时终转凉″ 提交于 2019-12-25 07:47:50
问题 Here's my problem: I have a JasperReport ( mainReport ) with one subreport ( subReport ) which, at the same time, have one subreport ( subSubReport ). My problem comes when I try to execute it from my web app. Those reports are extracted from an Oracle database, thus I'm passing an InputStream as "path" for them. Since I've been testing "paths" as InputStream (obtained from the same database) I know it works when I have a simple mainReport -> subReport hierachy... that's why I'm pretty sure