jasper file) with the compile report option.īut when I export the report to PDF (or display it with JasperViewer) it doesn't render with page footer in summary band. HOWEVER, compiling the report from the IDE is successful (I mean it generates the. #Jaspersoft studio for mac windows 7#The same behavior happens in different installations: I tried versions 6.3.1 and 6.4.0 in both Windows 7 and Mac OS. When I enter the parameter, I get the following state:Īnd after that the times and the pages keep growing until the program crashes. When I try to preview the report from Jaspersoft Studio with this approach, first I get the following state (before the IDE ask for the parameter): Subreport with isSummaryWithPageHeaderAndFooter="true" I'll describe now the problems for the subreport approach. So I tried the solutions described briefly above. The first requirement makes the summary band to need a height bigger than 656px, which is the max allowed for that band. The datasource and the query is the same for the main report and the summary.Those pages must be paginated ( page of in the footer).Has severals static text fields and some other expressions with calculated fields and parameters (formatted dates and things like that).The summary has the following requirements: After searching a lot I found out that this is not possible. The problem now is that I wasn't able to put the second detail band "below" the first: in the preview I see one row from each band alternately, and not as I need. I found the option of page footer and header in summary (a checkbox in Jaspersoft Studio which is isSummaryWithPageHeaderAndFooter="true" property in element) but then my report gave me a compilation error on preview don't know if it's a bug in Jaspersoft Studio: I tried in the 2 latest versions and the error was the same.įinally, I tried to add a second band with a different query which returns only a single value. The problem with that solution is that I wasn't able to show page numbers (from the first report) in the subreport section (which has 2 or 3 pages). That way I was able to use and bands to put the fields in both bands and don't have to worry about band height limitation. My second attempt to solve that problem was to put that static summary information in a subreport. In a first moment, I tried to put all that information in the but then I found out the 656px height limitation for JasperReports bands. I have a report with a simple table in the band and then a very big section of some static text and 2 or 3 expressions, which should correspond to the band. I'll try to explain myself as clearly as it's possible to me. I'm trying to accomplish some requirements with a report I'm designing for a desktop app.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |