Results 1 to 2 of 2
- 05-11-2009, 10:56 AM #1
Member
- Join Date
- Aug 2008
- Posts
- 2
- Rep Power
- 0
Proble with poi 3.1 while using CreateDrawingPatrich() method to add images into exc
Hi ,
I am using CreateDrawingPatrich() method to add images into excel sheet,its adding properly but privious imges are removing by using this method ,
Let me knwo if u have any sollution to avoid this problem , i need to add images to excel sheet without clearing before images
- 05-11-2009, 01:13 PM #2
Hi,
I have googled and found this method.Please check out whether it is useful.
org.apache.poi.hssf.usermodel
Class HSSFWorkbook
java.lang.Object
org.apache.poi.POIDocument
org.apache.poi.hssf.usermodel.HSSFWorkbook
All Implemented Interfaces:
Workbook
addPicture
public int addPicture(byte[] pictureData,
int format)Adds a picture to the workbook.
Specified by:
addPicture in interface Workbook
Parameters:
pictureData - The bytes of the picture
format - The format of the picture. One of PICTURE_TYPE_*
Returns:
the index to this picture (1 based).
See Also:
Workbook.PICTURE_TYPE_EMF, Workbook.PICTURE_TYPE_WMF, Workbook.PICTURE_TYPE_PICT, Workbook.PICTURE_TYPE_JPEG, Workbook.PICTURE_TYPE_PNG, Workbook.PICTURE_TYPE_DIBRamya:cool:
Similar Threads
-
method not abstract, does not override actionperformed method.
By Theman in forum New To JavaReplies: 2Last Post: 03-26-2010, 05:12 PM -
Proble displaying images dynamically in jsp
By javaxprogrammer in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 03-09-2009, 08:13 AM -
Calling a method in a different class from within a method problem
By CirKuT in forum New To JavaReplies: 29Last Post: 09-25-2008, 07:55 PM -
cannot call private method from static method
By jon80 in forum New To JavaReplies: 3Last Post: 05-07-2008, 08:37 AM -
Images in JSP
By Daniel in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 06-05-2007, 06:01 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks