This project has moved and is read-only. For the latest updates, please go here.

Excel Custom Task Pane

May 21, 2013 at 4:13 PM
Edited May 21, 2013 at 4:19 PM
I am trying to create a dockable custom task pane in Excel. I have looked at the example but do not fully understand how to use it as it's not a complete example.

It seems as though I need to create a ICTPFactory which then creates a CTP based on a fully qualified class name (of the user control that I want to display inside the CTP).

My misunderstanding is with the factory - the example states
Office.ICTPFactory ctpFactory = new NetOffice.OfficeApi.ICTPFactory(_excelApplication, CTPFactoryInst);
what is the second parameter? How do I call CTPFactoryAvailable() - ie what object to I pass to it?

Also why does the example include lots of extra functions for registration and connection handling when the others do not? Is this purely coincidently and showing off more advanced API features or is it more of a legacy example from a previous version of the API?

Any tips guys, thanks?
May 21, 2013 at 4:29 PM
Is it not possible to do something like this, which seems a lot simpler: