Back to Devexpress

Get Started - Convert Distances and Lengths

officefileapi-15113-unit-conversion-api-getting-started.md

latest1.4 KB
Original Source

Get Started - Convert Distances and Lengths

  • May 07, 2025
  • 2 minutes to read

Important

You need a license for the DevExpress Office File API Subscription or DevExpress Universal Subscription to use these examples in production code.

This article describes how to get started with the unit conversion component for .NET and .NET Framework.

Create a .NET Application

  1. Start Microsoft Visual Studio and create a new Console Application project.

  2. Install the DevExpress.Document.Processor NuGet package.

  3. Paste the code below in the Main method of the Program.cs file ( Main procedure of the Module1.vb file for Visual Basic).

  4. Run the project.

Create a .NET Framework Application

  1. Start Microsoft Visual Studio and create a new Windows Forms App (.NET Framework) project.

  2. Right-click the References node in the Solution Explorer and select Add Reference. In the invoked Reference Manager dialog, add a reference to the DevExpress.Docs.v25.2.dll assembly.

  3. Drop a Button from the Toolbox onto the form.

  4. Double click the button. Add the following code to the button’s Click event handler.

  5. Run the project and click the button.