Hi ! try to use RegForm Command , InfoPath provides a command-line utility called RegForm that you use to convert a standard form into a trusted form.
- Click Start, and then click Run.
- In the Open box, type cmd and click OK.
- Navigate to the folder that contains the RegForm tool, typically C:\Program Files\Microsoft Office\Office12\.
- type this command :
RegForm /U urn:MyForm:MyCompany /T Yes C:\MyForms\MyTrustedForm.xsn
In this example, replace the values for the /U switch and the name of the form template file with your own requirements and file location. The /U option provides the URN, the /T option indicates that the form should be marked as a fully trusted form, and the last parameter is the file and path name of the form template that is to be converted.
When the tool completes its processing, you will see that it created a .js file and a .bak file in the same folder that contains the form template that you are converting. The .bak file is a copy of the original form template file before the fully trusted changes were made to it; the .js file is a script file that can be used to install the fully trusted form.