[Gambas-user] open office text document
jbskaggs
jbskaggs at ...1871...
Wed Apr 15 21:55:33 CEST 2009
Okay I went to Openoffice and I created a file and added some text altered
the text size, formatting, etc and saved as html. Openoffice gives warning
about losing some formating I ignore that and save.
Then in Gambas2 I have a form with Textedit1 and I add:
textedit1.text=file.load("filename.html") in my form_open sub
and click run and it works fine for me.
If you need more help feel free to send me the document and I will see if I
can get it to work for you.
JB Skaggs
juelin wrote:
>
> dear JB SKaggs,
> thank you for your reply.
> Now i have convert the textdocument (odt) to html.
> then I read the htmlfile and insert it to TEXTEDIT object.
> But I see only the HTML-Text (with tags)
> What must I do, that I see only the text?
> kind regards
> Jürgen
>
>
> jbskaggs wrote:
>>
>> I convert odt to HTML and display in a control such as TextEdit.
>> Otherwise you will need to write a conversion code to convert ODT into
>> HTML or Text for Gambas.
>>
>> IN Gambas that is what Rich Text editing is - it is basically HTML.
>> Personally if you could write a ODT converter I would be very happy as I
>> dont have the time or inclination to do so becuase I am just as happy
>> with the HTML.
>>
>> JB SKaggs
>>
>>
>>
>> juelin wrote:
>>>
>>> hello,
>>> how can I show an open office text document (odt) into gambas
>>> textarea or some object like this?
>>> the document include pictures.
>>>
>>> the object embeded is not possible, while the user do not change the
>>> document
>>> and the document is not open with open office.
>>>
>>> kind regards
>>> Jürgen
>>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/open-office-text-document-tp23042958p23066009.html
Sent from the gambas-user mailing list archive at Nabble.com.
More information about the User
mailing list