Another problem henri,

I am using Debug when I arrive in the following line the system exit:


       Object objectInitial = xurlresolver.resolve("uno:socket,host="
               + stringHost + ",port=" + stringPort
               + ";urp;StarOffice.ServiceManager");

No error is showed.



aloizio wrote:
> 
> Hi Henri,
> 
> Yes is this I need. But as I am newer in OpenOffice API I don't understand
> the parameter to convert a HTML file. What is Template in this context?
> 
> My problem is I have a HTML file as input and I need as output the same
> file in different formats Word, RFT and PDF.
> 
> In your method public synchronized void convertTextWithInsert(File
> template, File htmlDoc, File target) has three parameter. In my case, I
> think that two parameter is sufficient, isn't ?
> 
> 
> 
> 
> Henri Sivonen wrote:
>> 
>> On Aug 9, 2006, at 23:44, aloizio wrote:
>> 
>>> I am developing one aplication that receive as input a HTML file  
>>> and convert
>>> it to three different formats DOC, RTF and PDF. But the file or  
>>> document
>>> generated loose the original document format, for instance, the  
>>> kind of Font
>>> change or if the docuemnt has a text centered it change to the  
>>> right or
>>> left. Could someone tell me what should I do to keep text format?
>> 
>> Hard to say from the information you provided.
>> 
>> You may be interested in
>> http://hsivonen.iki.fi/code/fi-karppinen-ooo.jar
>> which is specifically about applying styles from a template to the  
>> HTML structure. (Not tested with OOo 2.x.)
>> 
>> -- 
>> Henri Sivonen
>> [EMAIL PROTECTED]
>> http://hsivonen.iki.fi/
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Convert-HTML-file-to-WORD%2C-PDF-and-RTF-tf2081116.html#a5744799
Sent from the openoffice - api dev forum at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to