Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How do I open office documents using SWT (How do I open office documents using SWT )
How do I open office documents using SWT [message #529301] Fri, 23 April 2010 18:06 Go to next message
Dragon  is currently offline Dragon Friend
Messages: 1
Registered: April 2010
Junior Member
Hello,

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.

Thanks
Dragon
Re: How do I open office documents using SWT [message #529471 is a reply to message #529301] Mon, 26 April 2010 01:10 Go to previous message
Ralf Ebert is currently offline Ralf EbertFriend
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/
Previous Topic:Zoom view to a specific size or % of screen
Next Topic:ToolBar/ToolItem background colour on TabItems
Goto Forum:
  


Current Time: Fri Apr 19 07:33:34 GMT 2024

Powered by FUDForum. Page generated in 0.02794 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top