Problem with a hello world - what more software do I need? - InfoPath Dev
in

InfoPath Dev

Problem with a hello world - what more software do I need?

Last post 05-29-2008 05:58 AM by InfoPathN00b. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-21-2008 08:15 AM

    Problem with a hello world - what more software do I need?

    Being new to managed code I've been trying to follow this guide:

    Walkthrough: Creating a Basic Managed Code Form Template
    http://msdn.microsoft.com/en-us/library/aa942693(VS.80).aspx


    I got as far as clicking the 'Edit Form Code' button before I got this error:

    InfoPath cannot add the event handler.

    To work with the VisualBasic or C# code, Microsoft Visual Studio Tools for Applications (VSTA) is required.


    This is after doing a long and painful installation of all the software I thought I'd need earlier. The about dialog in Visual Studio 2005 lists the following installed components:


    Microsoft Visual Studio 2005
    Version 8.0.50727.42  (RTM.050727-4200)
    Microsoft .NET Framework
    Version 2.0.50727

    Installed Edition: Professional

    Microsoft Visual Basic 2005   xxxxx-xxx-xxxxxxx-xxxxx
    Microsoft Visual Basic 2005

    Microsoft Visual C# 2005   xxxxx-xxx-xxxxxxx-xxxxx
    Microsoft Visual C# 2005

    Microsoft Visual Studio Tools for Office   xxxxx-xxx-xxxxxxx-xxxxx
    Microsoft Visual Studio Tools for the Microsoft Office System

    Visual Studio 2005 Tools for Office Second Edition   xxxxx-xxx-xxxxxxx-xxxxx
    Microsoft Visual Studio 2005 Tools for the 2007 Microsoft Office System

    What more do I need to install in order to be able to edit form code?

  • 05-28-2008 10:38 AM In reply to

    • Albert
    • Top 500 Contributor
    • Joined on 04-03-2008
    • The Netherlands
    • Posts 32

    Re: Problem with a hello world - what more software do I need?

    You could try to look in the Office setup. Under InfoPath (add/remove programs) there is an options to enable .NET programming support.

    This is for 2007, don't know about 2003, but i guess it is the same.

    Albert

  • 05-29-2008 05:58 AM In reply to

    Re: Problem with a hello world - what more software do I need?

    Thanks Albert that worked, here's what I did. 

    From Add/Remove programs I selected InfoPath, clicked change and from the popup dialog 'Add or Remove features'>Continue. Microsoft Office InfoPath>.NET Programmability Support (enabled)>.NET Programmabiltiy Support for .NET Framework version 2.0 (disabled - huh?). I enabled this and Visual Studio Tools for Applications underneath it, after installing it finally worked. The installed products list now reads:


    Microsoft Visual Studio 2005
    Version 8.0.50727.42  (RTM.050727-4200)
    Microsoft .NET Framework
    Version 2.0.50727

    Installed Edition: Professional

    Microsoft Visual Basic 2005   xxxxx-xxx-xxxxxxx-xxxxx
    Microsoft Visual Basic 2005

    Microsoft Visual C# 2005   xxxxx-xxx-xxxxxxx-xxxxx
    Microsoft Visual C# 2005

    Microsoft Visual Studio 2005 Tools for Applications   xxxxx-xxx-xxxxxxx-xxxxx
    Microsoft Visual Studio 2005 Tools for Applications

    Microsoft Visual Studio Tools for Office   xxxxx-xxx-xxxxxxx-xxxxx
    Microsoft Visual Studio Tools for the Microsoft Office System

    Visual Studio 2005 Tools for Office Second Edition  xxxxx-xxx-xxxxxxx-xxxxx
    Microsoft Visual Studio 2005 Tools for the 2007 Microsoft Office System

     

    A lot of fuss for what should be a simple hello world.

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.