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

Creating a Word document using automation objects

Microsoft Word exposes its object model through COM automation the same way as Excel. The following example demonstrates how to export a dataset into a Word document via Automation variables. We will create a document containing a table and export a list of items in the Where-used report into the table.

The Where-used report is a list of assembled items, which includes the given item as a component in their bill of materials.

How to do it...

  1. Open C/SIDE page designer and create a list page. In the Table field, select the Item table. Run the page wizard and include two table fields in the page: No. and Description.
  2. After completing the wizard, open the page action designer and insert an Export action ...

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