The book advises that following code is added to "ThisAddIn"
XAMLHost ctrl = new XAMLHost();
string ctrlTitle = "Product Data";
private void ThisAddIn_Startup(object sender, System.EventArgs e)
ctp = this.CustomTaskPanes.Add(ctrl, ctrlTitle);
ctp.Visible = true;
ctp.DockPosition = Microsoft.Office.Core.MsoCTPDockPosition.msoCTPDoc kPositionRight;
When I tried this I got the follwoing error.
The best overloaded method match for 'Microsoft.Office.Tools.CustomTaskPaneCollection.A dd(System.Windows.Forms.UserControl, string)' has some invalid arguments
Anyone else got this error.
Any help would be appreciated.