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

Using COM type libraries in C/AL

A COM type library is a binary file containing the definition of a COM component.

How to do it...

To illustrate the principles of working with OLE automation in NAV, we will create a simple codeunit that reads data from a NAV server configuration file that is stored in XML format.

  1. Create a codeunit object in C/SIDE object designer.
  2. All code will be placed in the OnRun trigger of the codeunit. Open local variables of the trigger and create a XMLDoc variable. In the DataType field, select the Automation option.
  3. Click the assist button in the Subtype field to open a list of automation objects registered in the system. At first, the list is blank. Click on the lookup button in the Automation Server field to see the list ...

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