subreport

does DevExpress XtraReports have an easily accessible notion of “current detail report being printed”?

匆匆过客 提交于 2019-12-11 06:55:50
问题 I am printing a details subreport that gets printed let's say 5 times on the overall report, for 5 query results. I compute some stuff for it with my code, and so I use BeforePrint event on an XRTable widget that I have in that subreport. So far so good. What I don't like is that when the BeforePrint executes for that table for the first time and I change its cells' text to something, that this renders on all subsequent instances of this report and table being printed. Now, obviously, since

Get data from a subreport into the main report

时光怂恿深爱的人放手 提交于 2019-12-11 05:13:50
问题 I have made one main report containing a few subreports. At the end I would like to compare some figures from the different parts of the report and also make some calculations with numbers received from the different parts. Does anybody know a way to get values from the subreport into the main report? All calculations e.g. aggregates that will be made at the end refer only to the dataset for the main part and the other subreports have their own datasets, fetched from other tables. 回答1: I must

Can I do two levels of linking in Crystal Reports?

依然范特西╮ 提交于 2019-12-11 04:57:56
问题 Let's say I have three lists: Departments, Divisions, and Groups. A Department is made up of Divisions, which in turn is made up of Groups. The Divisions have the Department ID as a foreign key. The Groups have the Division ID as a foreign key. I'd like to produce a report that looks like this: Department 1 Division 1A Group 1A-i Group 1A-ii Group 1A-iii Division 1B Group 1B-i Group 1B-ii Group 1B-iii Division 1C Group 1C-i Group 1C-ii Group 1C-iii Department 2 Division 2A Group 2A-i Group 2A

net.sf.jasperreports.engine.JRException:Resource not found

℡╲_俬逩灬. 提交于 2019-12-11 01:55:19
问题 I try to use subreport using JasperSoft Studio but I get the exception below. It cannot find the subreport file although it is there. net.sf.jasperreports.engine.JRException:Resource not found at: D:\\JASPERREPORTS\\MyReports Below is the configuration of main report <?xml version="1.0" encoding="UTF-8"?> <!-- Created with Jaspersoft Studio version last--> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi

directly embedded subreport in JasperReports

六月ゝ 毕业季﹏ 提交于 2019-12-10 14:48:16
问题 I am so close to having this work, I am trying to directly embed one jasper subreport into the main report xml of the other. You'd think this would be easy, but I can't find a single example on doing it. Everyone seems to use files or resources or whatever. I have one report working straight from a string and I want it to contain it's subreport. Anyone? Syntax? Thanks! 回答1: The only way I know of to do this with JasperReports is to use a separate .jrxml file for the subreport, and include it

How to supress empty subreports in SSRS 2008

穿精又带淫゛_ 提交于 2019-12-09 04:52:00
问题 I'm creating a 'master' report in SSRS 2008 that collaborates other reports about a person. Sometimes not all of the other reports are relevant and as such return nothing. I'd like to be able to exclude this from the master report so it does not leave a blank page. I'm aware of the 'no-rows-message' feature, but a whole page with simply "Not applicable for this person" is hardly the best solution! Essentially I'm looking for a way to determine if a subreport is 'empty' and use that in a

How can I assign sheet names when exporting an SSRS report to Excel?

↘锁芯ラ 提交于 2019-12-08 10:13:28
问题 I am able to have a report with multiple subreports export to Excel with each subreport on a separate tab/sheet using the info here (placing each subreport within a Rectangle control and setting its PageBreak property to "Start"). I hoped that setting the Rectangles' PageName property would set the sheet names to what I assign there, but no - they are simply " Sheet 2 ", " Sheet 3 ", etc. So how can I assign a specific value to the sheet names so that those values are used when the SSRS

Not able to use subreports in JasperReports

六眼飞鱼酱① 提交于 2019-12-08 06:27:48
问题 My java code for creating Jasper reports is JasperReport report = JasperCompileManager.compileReport(jrxml); JasperPrint print = JasperFillManager.fillReport(report,parameters, conn); JasperExportManager.exportReportToPdfFile(print,filename); Its running successfully when I m creating reports without using sub reports. When I am inserting any subreport my code fails and exception says CAUSE: null MESSAGEnull LOCAL MESSAGEnull Please tell me If I need to change my Java code? I have read this

JasperReports: JRDataSource.subDataSource shows undefined

▼魔方 西西 提交于 2019-12-08 03:43:36
问题 I am following this tutorial to create my reports using iReport . I have already created a couple of reports using the guidelines mentioned. But in a new report, when I set the DataSource of the ListComponent Jasper reports the following error to me: The method subDataSource(String) is undefined for the type JRDataSource value = ((net.sf.jasperreports.engine.JRDataSource)parameter_REPORT_DATA_SOURCE.getValue()).subDataSource("/items/invoices"); //$JR_EXPR_ID=11$ I tried to look up in the docs

Hide or show Subreport

会有一股神秘感。 提交于 2019-12-07 16:52:02
问题 I have a requirement where i need to show or hide subreport based on user selection. Say I have a Main report and two sub reports: sub1 and sub2 . User selects to show only sub1 . The boolean value will be sent through Java . I need to show main report with sub1 in it and hide sub2 . I tried <printwhenexpression> but no matter what it shows only main report. <subreport> <reportElement uuid="25895ea2-ed3d-49d2-997b-f0e4e6e304a3" mode="Transparent" x="0" y="0" width="555" height="38">