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

Creating charts with Visio

Microsoft Visio is a product used for creating charts and diagrams. Here we will show an example of how to create a simple flowchart with two connected shapes.

Getting ready

Microsoft Visio must be installed on the client machine.

Note

You may also need to download the Microsoft Office Interop Assemblies from Microsoft here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=59daebaa-bed4-4282-a28c-b864d8bfa513&displaylang=en

How to do it...

  1. Create a new C# Class Library project in Visual Studio.
  2. Add the following code to the project:
    using System; using System.Collections.Generic; using System.Runtime.InteropServices; using Microsoft.Office.Interop.Visio; namespace VisioSample { [ClassInterface(ClassInterfaceType.AutoDual)] ...

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