SWT is actually a part of the Eclipse development platform so, if you use that to write your code with then you will already have the necessary archive and, most likely, the required dll(s). As the technique relies on dll(s), I have to stress that it is suitable only for use on Windows plaforms. It has been a very long time since I last looked at Wine and I cannot say whether it is yet ready to 'support' dll(s) on Linux platforms but it may be worth your digging around to see if things have progressed - http://www.winehq.org/.
Perhaps the best place to start is with the originators of the archive; http://www.eclipse.org/swt/ There you can get the archive, look at the documentation, etc. A good intro to using SWT can be found here; http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/SWTOleFrame.htm and it deals with running an application in a frame. This digs deeper and there is more code for you to take a look at including running Excel in a frame; http://www.vogella.de/articles/EclipseMicrosoftIntegration/article.html This links you to the examples section of the Eclipse site; http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse.platform.doc.isv/samples/org.eclipse.swt.examples.ole.win32/doc-html/swt_ole_ex.html and there are others; just Google around a bit for something like 'SWT OLE'. I have some experience of using SWT/OLE to control Excel indirectly, that is outside of a frame, and an happy to help where I can - though I would say that any discussions should be kept off of this list. If you chose to adopt that approach, you could still use your existing methodology to gather the data and then, when the user clicks on a button, grab the information and use SWT/OLE to create a new workbook, populate it and present the results to the user; remember though that Microsoft specifically advise against using such an approach because - amongst other reasons - the application was designed to be used interactively. Yours Mark B Dreamcatcher wrote: > > first of all thanks to you all for your precious time... > > The first thing i would like to clarify is that my application dont have > any link with explorer and tomcat so the option of IE is not valid for my > application... > > Secondly i would just like to say that i dont have any information about > using this OLE and COM/DCOM with SWT JAVA classes so if u guys just give > me any helping material or any useful links through which i would be able > to get the required data to perform that task.... > > Thanks all in advance.... > > -- View this message in context: http://www.nabble.com/Write-data-in-unsaved-Ecxel-File...-tp24823324p24863482.html Sent from the POI - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
