How do you Open other form templates within a form template

C

Chrisf

I would like to create an Infopath 2007 form template that lists the
available InfoPath form templates in a table with a button next to each one.
In the c sharp code for the button I would like to launch that form template.
This is the code I am using:


this.Application.XmlForms.Open("CAPS.xsn");

But I am getting this error: 'Microsoft.Office.InfoPath.Application' does
not contain a definition for 'XmlForms'

Does anyone know how I can launch another form template from within a form
template with InfoPath 2007 using C sharp in button code?
 
C

Chrisf

Thank you Shiva. Your 2nd link gave me the answer. My form was browser
enabled which was why I wasn't seeing it.
 

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