Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java in General and the fly likes Applying styles to the merged regions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Applying styles to the merged regions" Watch "Applying styles to the merged regions" New topic
Author

Applying styles to the merged regions

Vinny Bhat
Greenhorn

Joined: Apr 30, 2012
Posts: 10

Hi all,

I am creating an excel sheet using the Apache's POI method. I am stuck with applying the styles to the merged regions here.

The code I am using is as follows:

Am creating a cell and adding the merged region from the cell 1 to 6.



Cell style used in the above code is as follows:

How can I specify this cell style to all 1 to 6 cells that I have merged? Right now it applies only to one cell i.e first cell.

Any help would be greatly appreciated.

Vinny
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applying styles to the merged regions
 
Similar Threads
Copying a sheet from an excel file to another excel file using Apache POI
HTML in JSP tag
Help with Dataformats in Excel using Apache POI
POI Dataformat not applied
Formatting Word ducuments using Jacob