Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » [Windows 10] - OLE - Problem when embedding Microsoft Application as excel in SWT Frame( [Windows 10] - OLE - Microsoft application not embedded in Windows Application)
[Windows 10] - OLE - Problem when embedding Microsoft Application as excel in SWT Frame [message #1834396] Mon, 09 November 2020 16:40
Patsy Patsy is currently offline Patsy PatsyFriend
Messages: 1
Registered: November 2020
Junior Member
I test a little programm to embed Microsoft applications as Excel or Word in an SWT frame as follow.
public class main {
	public static void main(String[] arg) {
		Display display = new Display();
		final Shell shell = new Shell(display);
		shell.setLayout(new FillLayout());
		
		OleFrame frame = new OleFrame(shell, SWT.NONE);
			
		OleControlSite oleControlSite = new OleControlSite(frame, SWT.NONE, "Excel.Sheet");
		
		oleControlSite.doVerb(OLE.OLEIVERB_SHOW);
			
		shell.open();

		while (!shell.isDisposed()) {
			if (!display.readAndDispatch())
				display.sleep();
		}
		display.dispose();
	}
}



But the excel application is not embedded, it only shows unformatted cells as shown here.

index.php/fa/39675/0/

This programm works fine on my previous workstation on windows7.
It works well on Windows10 professionnel.
But on my Windows10 enterprise edition, the excel sheet is not shown on application window at all.


Could you tell what could be the problem?

Thanks.

  • Attachment: Capture.PNG
    (Size: 10.08KB, Downloaded 20 times)

[Updated on: Tue, 05 January 2021 16:03]

Report message to a moderator

Previous Topic:[Minimize/Maximize and Restore the window] shows black ui for a moment.
Next Topic:Crash when using recent versions of SWT on Linux
Goto Forum:
  


Current Time: Tue Apr 13 20:49:37 GMT 2021

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

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

Back to the top