O'Reilly logo

Microsoft Dynamics NAV 2009 Programming Cookbook by Matt Traxinger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying a .NET add-in on a page

The NAV Page Designer is limited in what it can do and what data it can display. By creating a visual .NET add-in and adding it to a page, you can display your data in the same formats available in .NET Windows Forms.

Getting ready

Download and install the client add-in tool from Christian Abeln.

http://www.cooldudette.net/BlogFiles/AddInImporter.zip

How to do it...

  1. Create a new class library project in Visual Studio.
  2. Add the following references to the project:
    System.Windows.Forms
    Microsoft.Dynamics.Framework.UI.Extensibility
    
  3. The latter can be found in the NAV installation directory under the RoleTailored client folder.
  4. Add the following code to the program:
    using System.Xml; using System.Data; using System.Windows.Forms; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required