Hi :)
My task is to generate infopath forms basing on informations from datasource. I will also need to take care of code behind generation. Inside .xsn we have already compiled .dll. What i would like to do is to be able to generate properly FormCode class on my own. The problem is FormCode is a partial class. If i try to compile part of code available through VS for applications i get errors caused by lack of the second part of FormCode class (InfoPath with just button inside throws error : "An object reference is required for the non-static field, method, or property 'Microsoft.Office.InfoPath.EventManager.ControlEvents.get' ") . Does anybody know how to deal with this? Is there anywhere available FormCode class full body?