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 Go to next message
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 273 times)

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

Report message to a 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 11:55 Go to previous message
Martin Lindemann is currently offline Martin LindemannFriend
Messages: 1
Registered: April 2023
Junior Member
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 06:34]

Report message to a moderator

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


Current Time: Thu Dec 05 13:26:35 GMT 2024

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

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

Back to the top