InfoPath Form with code detached... and lost! - InfoPath Dev
in

InfoPath Dev

InfoPath Form with code detached... and lost!

Last post 02-01-2010 06:49 AM by Qazi Anis. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-27-2010 11:56 AM

    InfoPath Form with code detached... and lost!

    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:-

    1. Opened the form in InfoPath (2007 for a MOSS server), under Form Options / Programming, I selected Remove Code, then set the language to c#
    2. Opened Tools, Programming, MS Visual Studio tools for Applications - created a new project file (the code was written in C#).
    3. 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

  • 02-01-2010 04:37 AM In reply to

    Re: InfoPath Form with code detached... and lost!

     Would you mind telling us what the errors say, specifically?

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 02-01-2010 06:49 AM In reply to

    Re: InfoPath Form with code detached... and lost!

    i think you do not have VSTA installed on your machine, get that installed on your machine and then try again.

    to install VSTA go to control panel -> add remove programs -> choose microsoft office -> change -> add or remove features ...

    Qazi Anis
    Technical Architect
    Bitwise Inc
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.