Open a new form from a Task Pane

B

Bob

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
view without having to add any code to the infopath form?

TIA

Bob
 
K

K.Ramana Reddy(GGK Tech)

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.
 
K

Kalyan G Reddy MVP (GGK Tech)

Hello,

Your form will need to require full trust in order to use this method.
 

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