poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danny Mui <da...@muibros.com>
Subject Re: Including images in an xls file
Date Wed, 23 Jul 2003 15:23:42 GMT
Yep exactly.

It's fairly straightforward,

InputStream input = new FileInputStream("some path to your existing file");
HSSFWorkbook workbook = new HSSFWorkbook(input);
//do your work
workbook.write(someOutputStream);

See javadoc for full API documentation.

Dani wrote:

>What is a template? Do you mean an excel file including the image? Have you
>got an example?
>
>----- Original Message -----
>From: Danny Mui <danny@muibros.com>
>To: POI Users List <poi-user@jakarta.apache.org>
>Sent: Wednesday, July 23, 2003 4:59 PM
>Subject: Re: Including images in an xls file
>
>
>  
>
>>With anything HSSF doesn't support through the API, the general method
>>is to save a template (with your image), load the template, populate the
>>cells and write them out again.
>>
>>
>>Dani wrote:
>>
>>    
>>
>>>Hello, it's my first time using POI. I've read the documentation about
>>>      
>>>
>HSSF
>  
>
>>>and how-to section. It seem easy to generate an xls file (I've run an
>>>example). But I've got a question: It is possible to generate a xls file
>>>including an image (a jpg image for example). I must create an excel file
>>>with incrusted images via HSSF and I don't know how to do it. I've read
>>>      
>>>
>the
>  
>
>>>documentation but I can't see anything about this.
>>>
>>>Thanks.
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>>For additional commands, e-mail: poi-user-help@jakarta.apache.org
>>>
>>>
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: poi-user-help@jakarta.apache.org
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: poi-user-help@jakarta.apache.org
>
>  
>


Mime
View raw message