akash12_06 Posted October 1, 2008 Share Posted October 1, 2008 Hi all,I have added one sub report in my main report but when i am running main report, i am not able to see sub report. In sub report i have just added one static text and it has been added in details band in main report. I am not getting any exception also regarding path of subreport . If i change sub report path, it gives me error saying object not found . That means it's trying to pick up sub reports. But why it is not getting displayed.. Is there any specific band of sub reports ? Link to comment Share on other sites More sharing options...
akash12_06 Posted October 1, 2008 Author Share Posted October 1, 2008 Also it there any specific band where i need to data in sub reports. Currently i have added static text in detail band. Link to comment Share on other sites More sharing options...
peter.galeingres.com Posted October 1, 2008 Share Posted October 1, 2008 Hi,There is no specific band for the sub-report, it depends on the purpose. A sub report in the detail band will be run for every row returned by the main query. If the sub report is not displaying then there are two possibilities1) The main report query is not returning any rows. Unlikely becaue you would get 'Report contains no pages'2) The Query in the sub-report is not returning any rows. Even if you place some statuc text in the detail band (or any band) of the sub-report it is still necessary for the sub-report to have a query that returns at least one row.Hope that helps Peter GaleIngres Corporation Link to comment Share on other sites More sharing options...
akash12_06 Posted October 1, 2008 Author Share Posted October 1, 2008 Thanks for reply. But my both the reports has 2 rows. When i run them separately , i am able to see both reports.I am attaching corresponding jrxml also. Just for your knowledge i am using JavaBean Data source in both the reports. Link to comment Share on other sites More sharing options...
akash12_06 Posted October 1, 2008 Author Share Posted October 1, 2008 Hi ,I got the issue. Actually the problem was in main report we need to correctly specify the data source setting for sub report. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now