Hi,
I have written the code in infopath 2007 form (managed code) to open the new form on click of a button.
XMLForm formObj = this.Application.XMLForms.NewFromFormTemplate(string formtemplatelocation)
This code works fine when i preview the main form and click the button but fails when i open the form from site.
Error:-
InfoPath cannot create a new, blank form.
InfoPath cannot open the form. To fix this problem, contact your system administrator.
Form template:formtemplatelocation
The following form template for the form cannot be found: file:
Please let me know how and where do i need to publish my second form which i am trying to open on button click using above code.
Thanks in advace.
Seema