[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Excel menus don't show

Hello,

in my application I open Word and Excel documents in one of my views. When I open Word documents everything works fine. But when I open Excel documents (using the exact same code) I cannot open the Excel menus. They are there but they don't drop down. Does anybody know, what the problem might be?

Code to open (it's divided into two methods for internal reasons - I tried putting all the code into createPartControl for this example but then the Excel sheet wouldn't show):
@Override
public void createPartControl(Composite parent) {
Composite top = new Composite(parent, SWT.NONE);
top.setLayout(new FillLayout());
OleFrame oleFrame = new OleFrame(top, SWT.NONE);
}


private int showDocument() {
 File docFile = new File("path to xls");
 site = new OleClientSite(oleFrame, SWT.NONE, docFile);
 return site.doVerb(OLE.OLEIVERB_SHOW);
}

Excel-Version: Excel 2003 SP 3 (German)

Eclipse-Version: 3.3.2 M20080221-1800

Kind regards
Bianca