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

Instant messaging using Office Communicator

Office Communicator is an instant messenger client for businesses, similar to AOL Instant Messenger or MSN Messenger. This recipe will show you how to integrate with Office Communicator and send a message to someone through NAV.

Getting ready

Office Communicator must be installed and configured on the client machine.

How to do it...

  1. Create a new C# Class Library project from Visual Studio.
  2. Add the following code to the project:
    using System; using CommunicatorAPI; using System.Threading; using System.Runtime.InteropServices; namespace NAVCommunicator { [ClassInterface(ClassInterfaceType.AutoDual)] [ProgId("NAVCommunicator")] [ComVisible(true)] public class NAVCommunicator { CommunicatorAPI.MessengerClass communicator; ...

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