Y
Yann Gibaja
Dear all,
I created an Infopath template(SP1 with Visual Studio 2003, code written in
C#) to be used as a data entry form to pass data to Excel. The C# code
creates a reference to Microsoft Excel 2003 and calls an Excel macro.
Therefore the form needs to be fully trusted.
I created an installation package using the following command:
regform /U urn:mycompany.com:myform /T Yes /MSI myform.xsn
I installed the template on my computer using the .msi file created by the
command above. It works fine.
When I installed the template on another computer, and try to create a form
with it, I get the following error:
"Infopath cannot create a new, blank form.
Infopath cannot open the form. To fix this problem, contact your system
administrator.
Form template:
file:///C:\Program%20Files\InfoPath%20Form%20Templates\PolicyIllustration.xsn
InfoPath cannot open the selected form because of an error in the form's
code.
Exception has been thrown by the target of an invocation."
I made sure that the same latest .NET Framework version is installed on both
computers.
Any help would be greatly appreciated,
Thank you,
Yann
I created an Infopath template(SP1 with Visual Studio 2003, code written in
C#) to be used as a data entry form to pass data to Excel. The C# code
creates a reference to Microsoft Excel 2003 and calls an Excel macro.
Therefore the form needs to be fully trusted.
I created an installation package using the following command:
regform /U urn:mycompany.com:myform /T Yes /MSI myform.xsn
I installed the template on my computer using the .msi file created by the
command above. It works fine.
When I installed the template on another computer, and try to create a form
with it, I get the following error:
"Infopath cannot create a new, blank form.
Infopath cannot open the form. To fix this problem, contact your system
administrator.
Form template:
file:///C:\Program%20Files\InfoPath%20Form%20Templates\PolicyIllustration.xsn
InfoPath cannot open the selected form because of an error in the form's
code.
Exception has been thrown by the target of an invocation."
I made sure that the same latest .NET Framework version is installed on both
computers.
Any help would be greatly appreciated,
Thank you,
Yann