Microsoft Office Tutorials and References
In Depth Information
Creating an InfoPath Task Pane
if (AddInStandardBar != null)
{
Office.CommandBarButton AddInConverterButton = (Office.
CommandBarButton)AddInStandardBar.Controls.Add(
Office.MsoControlType.msoControlButton, Type.Missing,
Type.Missing, Type.Missing, true);
// Button properties
AddInConverterButton.Caption = "CustomTask Pane";
AddInConverterButton.Visible = true;
AddInConverterButton.Enabled = true;
AddInConverterButton.Style = Office.MsoButtonStyle.
msoButtonCaption;
AddInConverterButton.Click += new
Office._CommandBarButtonEvents_ClickEventHandler(
openTaskPane_Click);
}
}
}
10. Now, when you run the Visual Studio solution with InfoPath 2007, you can
preview the InfoPath form template, as shown in the following screenshot.
 
Search JabSto ::




Custom Search