poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 51341] Adding Image to Header in Excel Using HSSF
Date Sun, 12 Aug 2012 12:03:41 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=51341

Evgeniy Berlog <superrubiroyd@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|DUPLICATE                   |FIXED

--- Comment #2 from Evgeniy Berlog <superrubiroyd@gmail.com> ---
This problem should be fixed in trunk. Anyway, you have a bug in your code. 

ClientAnchor anchor=helper.createClientAnchor();
int picIndex=wb.addPicture(img_bytes.toByteArray(),
HSSFWorkbook.PICTURE_TYPE_JPEG);
anchor.setRow1(5);
anchor.setCol1(1);
anchor.setCol2(2);
anchor.setRow2(5);

Anchor.row1 == anchor.row2 and anchor.dx1 == anchor.dx2 , so the width of your
image is equals to 0

Please try with a nightly build - see download links on http://poi.apache.org/
or build yourself from SVN trunk, see http://poi.apache.org/subversion.html

-- 
You are receiving this mail because:
You are the assignee for the bug.

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


Mime
View raw message