subreport

How to create multiple tables in jasper report using json as a datasource?

最后都变了- 提交于 2019-11-27 09:45:44
I need to make report like this: Product Name : Product XYZ --------------------------------- | Item Name | Quantity | Price | --------------------------------- | Item ABC | 10 | 10 $ | | Item BCD | 10 | 1 $ | Product Name : Product XYZ2 --------------------------------- | Item Name | Quantity | Price | --------------------------------- | Item DEF | 15 | 10 $ | | Item HIJ | 11 | 1 $ | Summary Report --------------------------------- | Product Name | Total Quantity | --------------------------------- | Product XYZ | 20 | | Product XYZ2 | 26 | The first problem is "product" can 1 to many. The

How to use same JRBeanCollectionDataSource on multiple sub reports? [duplicate]

谁说胖子不能爱 提交于 2019-11-27 07:22:24
问题 This question already has an answer here: Multiple Subreports in Main Report using same datasource 1 answer How to use the same datasource twice in JasperReports/iReport 2 answers Jasperreports - two subreports, same jrxml, same pojo datasource 1 answer I call two subreports with same datasource, however when I print this report, only my 1st sub-report is populated with table. This is how I pass the statsData1 to report. List<BasicStats> summaryList = new ArrayList<>(); summaryList.add(new

How to stop crystal report viewer from asking login credentials when opening subreport

久未见 提交于 2019-11-27 05:35:45
I currently have a crystal report embedded in a visual studio website. I deploy the website and install it on an IIS, and provide a link to the user so they can access globally and see this report. This system has been working great. However, when I embedded a crystal report that has a sub report, the credentials are not being passed to the sub-report automatically. When i debug the solution, the initial report opens fine, when I click the item to open the sub-report, crystal report viewer asks me for database login credentials. How can i pass those credentials automatically in the code so

Hiding Sub report in SSRS based on Parameter (and not executing the Stored Procedure)

三世轮回 提交于 2019-11-26 21:42:51
问题 I have an issue where I wish to hide/show a sub-report based on a parameter that is passed to the main report. I can set the hidden property using an expression which will hide/show the sub-report, but what I found using SQL Profiler, is that the sub-report stored procedure is still executed, even if the sub-report is hidden. Is anybody aware of a way to avoid this, other than changing the stored procedure itself. If not, does anybody know the reason why the stored procedure is executed even

Passing parameters from main report to subreport in Jasper

久未见 提交于 2019-11-26 18:23:34
问题 I have a JasperReport where I am passing the report Date from a Main Report to a sub report. This works fine. I also have another where I am passing the same parameter to a sub report that has multiple SubReports. When I preview it in Ireports all the pages for it appear blank which means the sub-sub reports are being called but the report Date is not being passed as all the sub-sub report SQL are conditioned on the report Date. How can I get the report Date field to the sub sub reports? When

How to create multiple tables in jasper report using json as a datasource?

天大地大妈咪最大 提交于 2019-11-26 14:53:36
问题 I need to make report like this: Product Name : Product XYZ --------------------------------- | Item Name | Quantity | Price | --------------------------------- | Item ABC | 10 | 10 $ | | Item BCD | 10 | 1 $ | Product Name : Product XYZ2 --------------------------------- | Item Name | Quantity | Price | --------------------------------- | Item DEF | 15 | 10 $ | | Item HIJ | 11 | 1 $ | Summary Report --------------------------------- | Product Name | Total Quantity | --------------------------

How to pass main report data source to subreport (JasperReports)?

自古美人都是妖i 提交于 2019-11-26 06:37:58
问题 I\'m using JasperReports and I fill the JRDataSource for ther report. Now, I want to pass the main REPORT_DATA_SOURCE to the subreport. How can I do this? As far as I know the REPORT_DATA_SOURCE is a consumable object, so it can only be used once, right?. Can I copy this data source and pass it? BTW: I use iReport for creating the layout. 回答1: You can pass datasource via the built-in REPORT_DATA_SOURCE parameter. The example: <subreport> <reportElement x="261" y="25" width="200" height="100"/