Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » org.eclipse.swt.ole.win32.OleAutomation without GUI(can you use org.eclipse.swt.ole.win32.OleAutomation without displaying?)
org.eclipse.swt.ole.win32.OleAutomation without GUI [message #1829798] Fri, 10 July 2020 16:56 Go to next message
Alexandru Stetiu is currently offline Alexandru StetiuFriend
Messages: 2
Registered: July 2020
Junior Member
I am looking at SWT to replace an older choice to embed Word, Excel docs in the Java application.

But I cannot figure out if possible to use org.eclipse.swt.ole.win32.OleAutomation without displaying the Word for instance.

Can someone give me an answer as I cannot figure out if swt was also created for use cases where the presentation of the document is not necessary.

Next are only details of the use case.
----------
The part where users are offered to edit a Word document inside the Java fat client works as with the older solution from Infozoom.

But I would also like to use OleAutomation for instance to apply SaveAs (i.e. to PDF) on a docx file that the user created before but is not looking at it at the moment.

But I get an error on SWT_AWT.new_Shell(display, canvas);

In fact the the instantiating is like this:
OleAutomation automation = new OleAutomation( site );
but the instantiating of the Site being
site = new org.eclipse.swt.ole.win32.OleClientSite(
oleFrame, org.eclipse.swt.SWT.NONE,
"Word.Document",new java.io.File(source));

requires an oleFrame.

thank you, Alex
Re: org.eclipse.swt.ole.win32.OleAutomation without GUI [message #1829815 is a reply to message #1829798] Sat, 11 July 2020 06:33 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31342
Registered: July 2009
Senior Member
This is a really detailed technical question and I doubt many people have much experience with using SWT's OLE integration. I assume you got things working also by looking at the SWT snippets:

https://www.eclipse.org/swt/snippets/

I used this stuff recently at a customer engagement mostly looking to improve performance. I was able to use it to automatically convert an older Excel format to a newer one...

You might get better help in the SWT forum:

https://www.eclipse.org/forums/index.php/f/100/


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Trouble With Eclipse Installer
Next Topic:Failed to login to Gerrit
Goto Forum:
  


Current Time: Tue Aug 04 00:49:46 GMT 2020

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

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

Back to the top