I have inherited an InfoPath form that should have code behind, but the code (and project) don't appear to match. I have AprFormTemplate0409.xsn and AprForm.xsn.cs. I understand I need to reattach the code on my computer, but I am getting an error when I try. What I've done is:-
-
Opened the form in InfoPath (2007 for a MOSS server), under Form Options / Programming, I selected Remove Code, then set the language to c#
-
Opened Tools, Programming, MS Visual Studio tools for Applications - created a new project file (the code was written in C#).
-
Deleted all the code in the new project, pasted in the code from the .xsn.cs form above
Once accomplished, I get errors on the form when I try to publish, referring me to VS tools for Applications but a) nothing is highlighted to help identify why it's failing, and b) I am not a programmer.
The InfoPath form and code are a match (although I can't guarantee they are the same version). On this assumption, is there anything obvious I have done wrong? I need to re-attach the code and republish to MOSS Ent forms server (urgently) but I haven't done this before.
Any ideas (especially any solutions!) would be HUGELY appreciated.
Thanks
Becs