danielsb2 Posted May 19, 2010 Share Posted May 19, 2010 I have a table with 5 columns and in the footer, i need to merge 3 coluns to show a value.is possible to merge cell using the table component?i'm using iReport 3.7.2=========================================Site: http://www.danielsousa.com.brTwitter: @danielsbarrosPost Edited by danielsb2 at 01/07/2010 08:16 Link to comment Share on other sites More sharing options...
Giulio Toffoli Posted May 20, 2010 Share Posted May 20, 2010 Yes, it is possible. Actually you will not really merge the cells, you will but the columns you need in a column group, then hide the footer cell of the individual columns, and show only the column cell footer, which will span on the three columns.Giulio Link to comment Share on other sites More sharing options...
danielsb2 Posted May 20, 2010 Author Share Posted May 20, 2010 Thanks for the reply Giulio!,I did not understand how to do what you say, but I tried and failed.The table must be created that looks like this attached.Could you send me a sample table with the merged cell that format? /uploads/projects/ireport/table.PNGPost Edited by danielsb2 at 05/20/2010 14:39 Link to comment Share on other sites More sharing options...
danielsb2 Posted May 26, 2010 Author Share Posted May 26, 2010 Giulio, could you send me a xml with a example like this table? Link to comment Share on other sites More sharing options...
danielsb2 Posted June 10, 2010 Author Share Posted June 10, 2010 I believe it is not possible to merge the cell. As it Giulio said, I could not do. I will report to be added in next version somethins like a "footer" to the table. Request: http://jasperforge.org/projects/jasperreports/tracker/view.php?id=4742 =========================================Site: http://www.danielsousa.com.brTwitter: @danielsbarrosPost Edited by danielsb2 at 10/06/2010 14:35 Link to comment Share on other sites More sharing options...
bfoese Posted June 11, 2010 Share Posted June 11, 2010 Hi,merging cells is actually possible. But in my case the text within a field that is nested inside of a nested cell doesn't appear in the generated report. I posted it yesterday (topic ID #75431) and included the code for the table component.However if you want to recreate the table you pointed out in iReport, try these steps: Create a Table with (in your case) 7 columns. For the szenario that you want to have the merging column in the column footer, select the columns two to seven in this footer (Report Inspector tree) and choose "Group selected columns" in the context menu. This creates a new element called "Group Header", that spans the formerly selected colums. This new element doesn't contain a cell yet, so you choose "Add cell" in the context menu of this element. Now you're able to drop a text field in this cell.Hopefully, this does the trick for you. Link to comment Share on other sites More sharing options...
danielsb2 Posted June 11, 2010 Author Share Posted June 11, 2010 Thank you so much bfoese!!The trick works perfectly /tools/fckeditor/editor/images/smiley/msn/teeth_smile.gif=========================================Site: http://www.danielsousa.com.brTwitter: @danielsbarros Link to comment Share on other sites More sharing options...
yilin1234 Posted July 26, 2010 Share Posted July 26, 2010 Can you please post the steps how to create a table. (I mean bond a table to the query)I created a table with 21 columns the row should denymicly from query. Example, if the query only has two records, the table will be two rows. If the query returns 5 records, the rows are 5.I put the 21 columns information to the table from my main report and the table itself, both showed the null values in the table.I put the query returned values at the sumary section of the main report, the values showed fine.Can you tell me what's wrong?Thanks.Lin Link to comment Share on other sites More sharing options...
sailingyang Posted April 6, 2011 Share Posted April 6, 2011 It is really work,Thanks. Link to comment Share on other sites More sharing options...
Sudhakarkmt Posted June 14, 2013 Share Posted June 14, 2013 HI,i wanted to do in tables.....if repeated values are there then they should be merged.Can anyone help me 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