You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by swamyvnvs <sw...@gmail.com> on 2014/03/11 05:31:33 UTC

Merging the cell by row wise with out losing of the data

Hi Team,

I am new to POI, i have small requirement i.e. I need to merge the data by
row wise with out losing of data of any row.

I am using below code for merging.

sheet.addMergedRegion(new
CellRangeAddress(firstrow,lastrow,firstcolumn,lastcolumn));

 it is merging successfully but, content was overridden by first row data.

Can any one help me on this.

Thanks and Regards
Swamy Vutukuru



--
View this message in context: http://apache-poi.1045710.n5.nabble.com/Merging-the-cell-by-row-wise-with-out-losing-of-the-data-tp5715144.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


RE: Merging the cell by row wise with out losing of the data

Posted by "Crocker, David" <Da...@nrel.gov>.
That works as designed.  If you want to merge the content of the cells then you need to concatenate first.

-----Original Message-----
From: swamyvnvs [mailto:swamy.vutukuru@gmail.com] 
Sent: Monday, March 10, 2014 10:32 PM
To: user@poi.apache.org
Subject: Merging the cell by row wise with out losing of the data

Hi Team,

I am new to POI, i have small requirement i.e. I need to merge the data by row wise with out losing of data of any row.

I am using below code for merging.

sheet.addMergedRegion(new
CellRangeAddress(firstrow,lastrow,firstcolumn,lastcolumn));

 it is merging successfully but, content was overridden by first row data.

Can any one help me on this.

Thanks and Regards
Swamy Vutukuru



--
View this message in context: http://apache-poi.1045710.n5.nabble.com/Merging-the-cell-by-row-wise-with-out-losing-of-the-data-tp5715144.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional commands, e-mail: user-help@poi.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org