Yes it's working also with .xls but it would need some minor changes
when the document is loaded like the snippet already does when it finds
a cvs-file.

Tom

Tahir Akhtar wrote:
> Thanks a load Tom,
> 
> I understand, for this to work I will need to get an instance of OpenOffice
> running and listening for requests. I may not be able to do this in my
> current requirement as the App is already deployed at dozens of clients and
> requiring all of them to install and configure OO will be a nightmare for
> support.
> 
> Thanks anyway.
> P.S. The code snippet is using odt extension for source file. Will it work
> with XLS?
> Regards,
> Tahir
> -----Original Message-----
> From: Tom Schindl [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, March 08, 2006 8:05 PM
> To: POI Users List
> Subject: Re: POI to PDF
> 
> Well you can't export to PDF from POI you need to load the file into
> e.g. OpenOffice using UNO and let OO do the Job for you. How this can be
> done is shown in the codesnippet here:
> 
> http://codesnippets.services.openoffice.org/Office/Office.ConvertDocuments.s
> nip
> 
> Tom
> 
> Tahir Akhtar wrote:
> 
>>Hi,
>>
>> 
>>
>>If I generate an excel sheet using POI, and have an instance of
> 
> HSSFWorkbook
> 
>>on hand, what are my options for generating a PDF file?
>>
>> 
>>
>>Any ideas will be really helpful.
>>
>> 
>>
>>Regards,
>>
>>Tahir
>>
>>
> 
> 
> 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to