.NET Interface

The .NET Interface makes it possible for Word API V0.5 to function through .NET applications developed using Visual Basic.NET, Visual C#.NET and similar programs.

The .NET Interface has been tried and tested in the following environments.

Component Registration

Word API .NET component is not registered automatically to the global assembly cache (GAC). It is necessary to create the path either by putting the .NET component in the current folder of the application, or by creating an application configuration file.

.NET Component File Name for .NET 6 AHOOXMLDocxManager.dll

Programming Example

[Install directory]/samples/dotnet includes some useful sample files for C#.NET.

Running the Sample Program

In .NET 6, do as follows to execute the sample for C#.NET 6.
When using the .NET 6, install the .NET 6.0 SDK.
At this time, the following project file (csproj) is required in the directory where you want to execute it.

<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net6.0</TargetFramework> </PropertyGroup> <ItemGroup> <Reference Include="AHOOXMLDocxManager"> <HintPath>[Install directory]\AHOOXMLDocxManager.dll</HintPath> </Reference> <Reference Include="CsvHelper"> <HintPath>[Install directory]\CsvHelper.dll</HintPath> </Reference> <Reference Include="DocumentFormat.OpenXml"> <HintPath>[Install directory]\DocumentFormat.OpenXml.dll</HintPath> </Reference> <Reference Include="System.Drawing.Common"> <HintPath>[Install directory]\System.Drawing.Common.dll</HintPath> </Reference> <Reference Include="System.IO.Packaging"> <HintPath>[Install directory]\System.IO.Packaging.dll</HintPath> </Reference> </ItemGroup> </Project>

The execution directory should contain one target file and execute the following command:

> cd execution_directory >dotnet run

API Specification

See the document that was generated by Doxygen.