giobby Posted October 2, 2009 Share Posted October 2, 2009 Hi guys, i'm using i report for 1 week... and after reading a lot of discussions in this (and others) forum i can understand that is complicated make not basilar operations (i met several problems just for reading values from a subreport) . Questions:1-Someone may help me to find examples to learn all about groups, expressions and the correct use of details/summary bands (and their differrences in relation with subreports)?2- Only to confirm a matter:when i put a sub report in detail band the result is:------------------------------------------------------detail band--------------------------------------------------- 1st record->main rpt 1st record-> sub rpt 2nd record->sub rpt ...2nd record->main rpt 1st record-> sub rpt 2nd record->sub rpt ...3rd record->main rpt ...------------------------------------------------------end detail band---------------------------------------------------is true?And when i want to append the result of a sub report (whitout making an union of queries) i must put the sub in the summary band to obtain:------------------------------------------------------detail band---------------------------------------------------1st record->main rpt2nd record->main rpt------------------------------------------------------end detail band---------------------------------------------------------------------------------------------------------summary band--------------------------------------------------- 1st record-> sub rpt 2nd record->sub rpt ...------------------------------------------------------end summary band---------------------------------------------------isn't true?THANKS Giovanni...La puissance est rien sans controle... Link to comment Share on other sites More sharing options...
giobby Posted October 2, 2009 Author Share Posted October 2, 2009 please can someone answer at least to the second question (about differences between details/summary bands an their ralation whit subreports)? Giovanni...La puissance est rien sans controle... Link to comment Share on other sites More sharing options...
svenn Posted October 2, 2009 Share Posted October 2, 2009 The detail band is called for every row that your main query retrieves. So if you get ten rows of data the detail line will be called ten times.The summary band is called once at the end of report when all you data has been retrieved.Here a page with a few Jasper exampleshttp://jasperforge.org/website/jasperreportswebsite/JR%20Website/jasperreports_samples.html?group_id=252&header=project&leftnav=yes&target=jasperreports Link to comment Share on other sites More sharing options...
giobby Posted October 5, 2009 Author Share Posted October 5, 2009 thanks for the help Giovanni...La puissance est rien sans controle... 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