Search code examples
c#office-addinspowerpoint-2010

Powerpoint AddIn


I am new to powerpoint add in and looking to add custom task pane.

https://msdn.microsoft.com/en-us/library/Microsoft.Office.Tools.CustomTaskPane(v=vs.110).aspx

from Above link you can add custompane by using

  this.CustomTaskPanes.add()

I cannot find CustomTaskPanes in the intellisense when trying to do it from ribbon control click.

Any ideas?


Solution

  • The CustomTaskPanes collection is a property on the ThisAddIn class. So, you will be able to access it within the ThisAddIn_Startup method using the "this." syntax. If you're not seeing the collection in intellisense/autocomplete.

    The issue may have arised due to some possibilities like :

    1. You're not using VSTO(Visual Studio Tools for Office) 2005 SE.

    2. You're using VSTO 2005 SE but you installed on top of a previous VSTO v3 CTP which was not completely removed.

    3. You're building an add-in for an application that does not support custom task panes (all the Office 2003 apps, Visio 2007).