Register InfoPath Form

J

JoeAtPMHCC

We work across multiple servers often our IP forms are the same ones. Our
application opens the forms using NewFromSolution or NewFromSolutionWith
Data. If someone has previously opened the form from a server different from
his current he will get an error and be unable to continue with the
application. The user will then exit the app and manually open the form from
IP. The usual message:
"The selected file is an update of a form on your computer. However, the
update has been blocked because the author of the file cannot be verified."

Will come up and ask the user if they want to update the form. Is there
anyway to automate this process?

Thanks in advance,
Joe
 
A

Adam Harding

Joe

If you go into Tools-Form Options-Advanced you can set it so that the forms
are not autoupdated which will prevent some of the errors. If your forms are
not fully trusted then any forms with the same name will confuse Infopath
even if the path is different. If they are fully trusted then depending on
what criteria you chose to fully trust the form under you may have the same
kind of problem.

A solution of sorts, fully trust the forms using the formreg tool in the
infopathSDK and categorically publish the forms with differing criteria to
help prevent confusion. One thing to note fully trusting the forms this way
creates a unique naming convention based on the form name, 2 other criteria
and version to guarantee uniqueness, ideally your form name should be
different in each case too.

Cheers Adam

PS Don't 100% know if this will work as have not had the problem but kinda
makes sense
 
Top