Skip to main content



      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 11:40 Go to next message
Eclipse UserFriend
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 318 times)

[Updated on: Tue, 05 January 2021 11:03] by Moderator

Re: [Windows 10] - OLE - Problem when embedding Microsoft Application as excel in SWT Frame [message #1858534 is a reply to message #1834396] Thu, 06 April 2023 07:55 Go to previous message
Eclipse UserFriend
Did you fixed the issue? I got the same problem on Windows 10 professional.

index.php/fa/43087/0/

[Updated on: Tue, 11 April 2023 02:34] by Moderator

Previous Topic:SWT_AWT DPI scaling
Next Topic:Unable to execute js code injected in html through SWT Browser
Goto Forum:
  


Current Time: Wed Jul 02 19:48:38 EDT 2025

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

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

Back to the top