Results 1 to 1 of 1
- 03-19-2010, 11:26 PM #1
Member
- Join Date
- Mar 2010
- Posts
- 1
- Rep Power
- 0
Image does not show up when using 'setRowGroup'.
Hello,
I am using Jxl to export to Excel. I am insering an image into a cell and then I use the 'sheet.setRowGroup' to group bunch of rows wheich also include the row that the image is in. When the Excel file opens up and I click on the + sign to upgroup the rows the image is missing! When I comment out the line of setRowGroup, then the image shows up but I need to be able to group the rows. Any idea why it's behaving this way? Thanks.
...
sheet.addCell(new Label(3, rowNum, "Image:", cellFormatGenaral));
byte[] ba = RenderUtils.filePathToByteArray("/images/stars/" + imageName + "_small.png");
WritableImage wi = new WritableImage(4, rowNum++, 1, 1, ba);
sheet.addImage(wi);
int lastGroupRow = rowNum-1;
sheet.setRowGroup(firstGroupRow, lastGroupRow, true);
Similar Threads
-
Show image on glasspane while mouse button is down
By zweibieren in forum AWT / SwingReplies: 10Last Post: 09-12-2009, 06:29 AM -
the component does not show
By shruti in forum AWT / SwingReplies: 8Last Post: 07-08-2009, 12:21 PM -
How to show pixel Coordinate and RGB value when mouse is tracking over an image
By Mazharul in forum Java 2DReplies: 1Last Post: 08-25-2008, 08:48 PM -
netbeans 6.0 not show commpunent or show blank page
By fahimaamir in forum NetBeansReplies: 1Last Post: 01-26-2008, 06:20 AM -
Converting multiple banded image into single banded image... Image enhancement
By archanajathan in forum Advanced JavaReplies: 0Last Post: 01-08-2008, 05:29 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks