Sponsors: Michael Fertik - Best JAVA Web hosting Company & 30% off


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-19-2010, 11:26 PM
Member
 
Join Date: Mar 2010
Posts: 1
Rep Power: 0
sdsdsd is on a distinguished road
Question 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);
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Tags
excel, grouping rows, image

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Show image on glasspane while mouse button is down zweibieren AWT / Swing 10 09-12-2009 06:29 AM
the component does not show shruti AWT / Swing 8 07-08-2009 12:21 PM
How to show pixel Coordinate and RGB value when mouse is tracking over an image Mazharul Java 2D 1 08-25-2008 08:48 PM
netbeans 6.0 not show commpunent or show blank page fahimaamir NetBeans 1 01-26-2008 06:20 AM
Converting multiple banded image into single banded image... Image enhancement archanajathan Advanced Java 0 01-08-2008 05:29 PM


Java Forums is supported by the best jsp hosting.

All times are GMT +2. The time now is 05:25 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org