[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Load Excel workbook without any options (commands)

The whole point of being able to embed an active X control inside SWT is so that you would have the full feature set of the application without really writing it. I'm not sure if you will be able to completely disable all of its functionality. May be you need to write your own spreadsheet (table)?

I'm pretty sure you can also reduce the popup menu to just cut/copy/paste in the same way that the toolbar is being hidden.

When I run your example, it opened Excel inside the SWT shell. When you run the SWT Snippets (eg. Snippet261), does it open a separate window too?

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?