Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I need to migrate my existing custom taskpane program to work with Excel 2013.
I encounter task pane not appearing issue.

So i decided to create custom task pane prototype for the Excel 2013 based on
https://msdn.microsoft.com/en-us/library/aa942846.aspx[^] for testing purpose.

I have disable/remove all active add-in in my Excel 2013.
But this protoype custom taskpane still does not appear when go to debug mode.
There is no programming error encounter by MS Visual Studio during debugging.

What else did i miss/do wrong?

C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Excel = Microsoft.Office.Interop.Excel;
using Office = Microsoft.Office.Core;
using Microsoft.Office.Tools.Excel;

namespace ExcelAddIn5
{
    public partial class ThisAddIn
    {
        private MyUserControl myUserControl1;
        private Microsoft.Office.Tools.CustomTaskPane myCustomTaskPane;

        private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
            myUserControl1 = new MyUserControl();
            myCustomTaskPane = this.CustomTaskPanes.Add(myUserControl1, "My Task Pane");
            myCustomTaskPane.Visible = true;
        }

        private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
        {
        }

        #region VSTO generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InternalStartup()
        {
            this.Startup += new System.EventHandler(ThisAddIn_Startup);
            this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
        }
        
        #endregion
    }
}
Posted

1 solution

Found the solution, turn out program is interfereing with this code.
 
Share this answer
 
Comments
fawadali123 2-Jul-15 12:32pm    
can you please explain how did you solve it?
i am facing the exact issue.
my custom taskpane apear on Excel 2010 without any issue.
but on Excel 2010 it does not display. and there is no error.

Thanks,

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900