|
Re: How do I open office documents using SWT [message #529471 is a reply to message #529301] |
Mon, 26 April 2010 01:10 |
Ralf Ebert Messages: 168 Registered: July 2009 |
Senior Member |
|
|
Hi Dragon,
> I am writing a little SWT app that has 2 threads a UI thread and another
> daemon thread that gets some messages, I would like to open files (doc,
> xls, pdf, xml ) etc from either of these threads and display to the
> user. What kind of controls should I be using...since I am new to
> eclipse/SWT I am not sure what exists.
there are some approaches for this:
- You can open the default system editor for files, see
http://www.eclipse.org/swt/snippets/#program
- The Browser widget can be used to embed everything for which a browser plug-in is
installed (typically PDF)
- On Windows OLE and ActiveX can be used to embed the Office suite editors, see
http://www.eclipse.org/swt/snippets/#ole for example code
- The NOA4e project allows to embed OpenOffice in SWT / Eclipse applications, see
http://ubion.ion.ag/solutions/003officeintegrationeditor
- For editing XML files in the application, the editors from the Web Standard Tools
project can be reused, see http://www.eclipse.org/webtools/wst/main.php
Greetings,
Ralf
--
Learn how to contribute to Eclipse here: http://eclipse.org/contribute/
Read my Blog here: http://www.ralfebert.de/blog/
Follow me on Twitter here: http://twitter.com/ralfebert/
|
|
|
Powered by
FUDForum. Page generated in 0.02794 seconds