stevenjohn Posted May 17, 2008 Share Posted May 17, 2008 Hi there, I have used the tutorial found at: http://aspalliance.com/1355_Creating_and_Designing_Report_using_iReport__Part_2.all to create my first report which includes a subreport. It works fine in that when I run the master report I see my subreport included. However, the problem is that if I make any changes to the subreport (and then save it), when I re-run my master report the new changes arent propagated. So all I can see is the same subreport within my master report as when i first started :( Have tried making sure all elements are saved before executing report, disabled a cache setting I saw, but to no avail. I'm quite new to iReport so I'm sure I'm doing something stupid - hope someone could help me out here. Kind regards, Steve. Link to comment Share on other sites More sharing options...
ganny.perikala Posted May 19, 2008 Share Posted May 19, 2008 hai stevenjohn, u had written that ur updating the subreport.when u update ur subreport u have to recompile it .so that u can append ur updation to the master report. ithink this will work.u try it. Link to comment Share on other sites More sharing options...
stevenjohn Posted May 19, 2008 Author Share Posted May 19, 2008 Fantastic, thanks - it was a silly error, but yes I needed to recompile... Cheers, Steve. Link to comment Share on other sites More sharing options...
CaptnTony Posted May 20, 2008 Share Posted May 20, 2008 I have found, in the most recent 2 versions of iReport, that this is not the case. I do compile each report (using the compile tool on the iReport toolbar) after saving the changes. I've even gone as far as using both the empty dataset and full dataset buttons to preview the report after it is compiled. I have found that 99% of the time I must use the massive compiler tool in order to see changes in my subreports when I use the full dataset button on my master report. It's actually starting to get a bit frustrating, but the program is still worth it, so I adapt. I do now have a problem that even the massive compiler hasn't fixed, I will post that in a new thread though. Link to comment Share on other sites More sharing options...
lshannon Posted May 21, 2008 Share Posted May 21, 2008 I have not seen this behavior. Perhaps the changes you have made are not being updated to the JRXML, which would be a different problem altogether. I have seen this occasional when making changes to charts and stylesheets. One thing that can cause this type of symptom is when testing in PDF and not closing Acrobat after you have exported a report. If you make a change and then run against the Datasource again, if Acrobat is still open with the last version of the report, it will just show this version again. I have lost a fair amount of time in the wee hours of the morning thinking my changes were not being picked up because of this. HTH Link to comment Share on other sites More sharing options...
kreska07gmail.com Posted January 24, 2020 Share Posted January 24, 2020 In my case "build all" did do nothing for some reason.But there is another way of compiling the report: right-click on the subreport (jrxml file) in project explorer, then "Compile Report".You also can do it from the design perspective - using the attached icon. 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