| [news.eclipse.platform.swt] Re: Load Excel workbook without any options (commands) |
Duong
Sajid wrote:
Hi,
As a newbie I tried different code snippets and examples available on http://www.eclipse.org/swt/ but couldn't achieve the required results. Every time I try to run an example that uses oleClientControl to load an excel file, the file loads into Excel in a separate window and my Shell window remains blank (no sheets on it).
Earlier on I was trying to open the file with oleClientSite and hide different toolbars and menus but then I realized that options are endless and users can do different things by either using context menus (for example add new sheets) or use keyboard shortcuts (for example Ctrl+B). I don't want to give any such control to the user. User should only be able to enter text and do not apply formating, add sheets or do other things.
At the moment I'm using the following code to load an excel file and hide toolbars etc. Can anybody help me achieve my requirements?