Adding the Main Converter Class

  1. Open Microsoft Visual Studio (Visual Studio 2022 is used in this example)
  1. Create a new Class Library Project using .NET Standard or .NET 8.0 (Visual C# is used in this example) and press the “Next” button

    Figure 1.

  2. Set the Solution name to MyWordConverter and its location and press the “Next” button

Figure 2.

  1. Select the appropriate .Net Standard or .Net 8.0 version and press the “Create” button. It’s recommended to use long-term supported versions.

    Figure 3.

  2. Add any required references to the Solution. The following are required for this example:

    1. Right click on References in the Solution Explorer and select Add References.
    2. Select the Browse tab and return both IOM.dll and Conversion.Base.dll from the ‘bin\Debug’ folder of the Solution. You can copy the files this location from the ‘\ConversionServer\bin’ folder of your Aras Innovator code tree.
    3. Right click on References in the Solution Explorer and select Add References.
    4. Select COM à Type Libraries

      Microsoft Word 16.0 Object Library 8.7

    5. Right click on the project Dependencies in the Solution Explorer and select Manage NuGet packages….

      Figure 4.

    6. In the “Browse” tab start typing ConfigurationManager in search input until System.Configuration.ConfigurationManager package appears in the packages list.
    7. Select the latest version and press the “Install” button

      Figure 5.

    8. In the new .cs file, add the necessary Namespaces. The following are required for this example:

using System;

using System.Collections.Generic;

using System.IO;

using Microsoft.Office.Interop.Word;

using Aras.ConversionFramework.Converter;