CustomTaskPane infopath 2007

R

Richard

want to add customtaskpane to infopath via VSTO, I was able to make an addin
project and that worked fine: here is the code:
CustomTaskPane ctp = this.CustomTaskPanes.Add(new UserControl1(), "My
Caption");

ctp.Visible = true;

I want to be able to have the same thing in an infopath template project via
VSTO , not an add-in.
I can not find CustomTaskPane ?
 
R

renee rieser

When you're in design mode for the form in Infopath, choose from the
menubar: Tools/Form Options/Advanced/Enable Custom Task Pane

If you must code it, try looking for the HTMLTaskPane object
 
R

Richard

HTMLTaskPane object does not exist in the Infopath 2007 OM ??
If you go to tools, form options, programming, and click on Upgrade OM ,
then your form is based on the new OM.
you will see that a lot has changed.
HTMLTaskpnae is not defined ,..
 
R

renee rieser

Sorry. I completely overlooked the "2007" bit in the title. :)
FWIW, I'm still struggling with 2003.

You've probably already seen this article on MSDN, but just in case
you haven't... I came across it just now while looking again for an
answer to my boolean node value problem.

http://msdn2.microsoft.com/en-us/library/ms406050.aspx

MSDN Library > Office Solutions Development > 2007 Microsoft Office
System > 2007 Office Suites > Technical Articles > Creating Office
(2007) Custom Task Panes by Mark O'Hara and Frank Rice on
May 2006
 
R

Richard

I have looked at that article ,since I am not creating an activex control ,
and simply add a usercontrol to the addin project , it already does many
steps inluding the registration , so , I am not sure how this article comes
to use .. and could not see any reference to :
CustomTaskPane ctp = this.CustomTaskPanes.Add(new InfoAddin(), "My
UserControl1");

the above is simple and was described in other articles to create the custom
task pane, but have no idea how to interface to the ctp ..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top