Microsoft InfoPath 2010
The official blog of the Microsoft InfoPath team

More than one way to write code: Visual Studio and InfoPath

More than one way to write code: Visual Studio and InfoPath

  • Comments 3
If you need to write some Visual Basic or C# code behind your form, or maybe just some script, there are a few different tools you can use depending on which versions of InfoPath and Visual Studio you have.
 
Here's a quick table summarizing it all:
 
 
Note that both Microsoft Script Editor (MSE) and Visual Studio Tools for Applications (VSTA) come with InfoPath 2007 Beta, so you can open them from the Tools | Programming menu. If you don't see the one you want, change the language in Tools | Form Options. If it gives you an error that it's not installed, here's how to install them:
 
  1. If you are going to install VSTA, make sure you have the pre-requisites first:
  2. Go to Start > Control Panel > Add or Remove Programs
  3. Select your Office installation and click Change
  4. In the Office Setup wizard select to add features
  5. Find Microsoft Script Editor (under Office Tools) and/or Visual Studio Tools for Applications (under InfoPath > .NET Programmability) and select Run from my computer
  6. Finish the wizard
 
Happy code writing!
- Ned
Leave a Comment
  • Please add 2 and 6 and type the answer here:
  • Post
  • Yesterday, I put together an InfoPath 2007-based demo of VSTA to demo on a laptop. The laptop already
  • Yesterday, I put together an InfoPath 2007-based demo of VSTA to demo on a laptop. The laptop already

  • Tools | Programming | (vsta)

    Results in an error message, VSTA is required.

    I have framework 2.0 and msxml 6 installed.  

    VSTASDKFebruary2007.exe download does NOT install vsta.exe or vsta.exe.config

    Something is BROKEN!!

    Note: VS 2005 installed.

Page 1 of 1 (3 items)