Good day,
I've got a quite simple Document Information Panel view, created in InfoPath 2013, to be used in Word. I need to perform a calculation on one of the fields. It's too complicated to perform this calculation within InfoPath, I need to write some code in C# of VB (using Visual Studio). That shouldn't be any problem since InfoPath has a Developer tab with Visual Studio integration. The thing is, it just doesn't work. Even when I just click on "On After Change event" button and Visual Studio generates an empty function for me, it already produces an error when using the form. Because I didn't add any code yet, it's 100% sure the error is not as result of my custom code.
It's even weirder. When I create a new empty form, just add a button, and add a skeleton code (an empty function), it won't work. It just gives a generic code. Is there anything else then just saving what I have to change to be able to use an InfoPath form with code? Or is there some security setting I should change on my computer, or within InfoPath?
The error message is: "Document Information Panel cannot open a new form.
The form cannot be opened. To fix this problem, contact the form designer.
Form template: https://mysite.sharepoint.com/_cts/documents/e7d9d2651713b7f2customXsn.xsn
Document Information Panel cannot open the selected form because of an error in the form's code.
Error in the application."
I hope I gave enough information. If anything is missing, please ask. Thank you very much,
Meneer Aart.