通过代码使用OpenOffice.org [英] Using OpenOffice.org from code
本文介绍了通过代码使用OpenOffice.org的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我有一个SQLite数据库,其中的表名为"documents",其中包含三列:id,title和text.现在,我将它们加载到具有相同结构的对象中(以int,标题和文本字符串表示),并且我想在OpenOffice.org编辑器或Wordpad中打开文本",让用户在编辑器关闭后对其进行编辑更新数据库.
除编辑器外,一切都已完成(数据库选择/更新,对象加载/卸载).
我有一个主意:在一个文件夹中创建一个.odf或.rtf临时文件,并在其中加载文本内容,然后在编辑器关闭后从中读取内容并将其删除.但是我不知道该怎么做以及该过程是否正确.你会怎么做?
感谢您的回答和帮助.
约瑟夫·波斯皮西尔
PS:很抱歉我的英语水平,但是我的写作能力不好.
解决方案
错误的主意;(
更好地使用标准控件,例如 RichTextBox [此处 [
Everything is done (database select/update, object load/unload) exept the editor.
I had an idea: create an .odf or .rtf temp file in a folder and load the text content in it and after the editor closes read the content from it and delete it. But I don''t know how to do it and if that process is right. How would you do it ?
Thanks for any answer and help.
Josef Pospisil
PS: I''m sorry for my english, but I''m not good in writing.解决方案Bad idea ;(
Better use standard controls, as RichTextBox[^].
Here[^] you''ll find a thousands of examples.
这篇关于通过代码使用OpenOffice.org的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文