Hi,
we have one method called " NewFromSolution" method to create a new form
based on an existing form template.
Code:
var objXDoc;
objXDoc = Application.XDocuments.NewFromSolution("C:\MyForm.xsn");
Place a button in taskpane and write the code under that button.
I hope this will help for you.

Signature
k.Ramana Reddy
http://www.GGKtech.com
> Does anyone know how to open a new form from java script when using
> the custom task pane? And more importantly, a new form and a specific
[quoted text clipped - 3 lines]
>
> Bob
Kalyan G Reddy MVP (GGK Tech) - 11 Jul 2007 08:28 GMT
Hello,
Your form will need to require full trust in order to use this method.

Signature
Kalyan G Reddy - INFOPATH MVP 2007
http://www.ggktech.com
> Hi,
>
[quoted text clipped - 18 lines]
> >
> > Bob