Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2008
    Posts
    2
    Rep Power
    0

    Default 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

  2. #2
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    835
    Rep Power
    6

    Default

    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_DIB
    Ramya:cool:

Similar Threads

  1. Replies: 2
    Last Post: 03-26-2010, 05:12 PM
  2. Proble displaying images dynamically in jsp
    By javaxprogrammer in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 03-09-2009, 08:13 AM
  3. Replies: 29
    Last Post: 09-25-2008, 07:55 PM
  4. cannot call private method from static method
    By jon80 in forum New To Java
    Replies: 3
    Last Post: 05-07-2008, 08:37 AM
  5. Images in JSP
    By Daniel in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 06-05-2007, 06:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •