O'Reilly logo

Extending Microsoft Dynamics NAV 2016 Cookbook by Alexander Drogin

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

Chapter 5.  Extending C/AL with COM Components

In this chapter, we will cover the following recipes:

  • Using COM type libraries in C/AL
  • Mapping COM datatypes to C/AL
  • Disposing of COM objects
  • Working with the Variant datatype
  • Sending data to the Excel automation server
  • Creating a Word document using automation objects
  • Creating and registering a COM component that can be used in NAV

Introduction

The Component Object Model (COM) is a platform-independent interoperability model. Each COM library is a piece of software that can be bound to a client application at runtime. NAV application code can use classes and interfaces exported by COM type libraries, although this support has certain limitations:

  • COM automation objects can run only on the NAV client. Server-side ...

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