Search results

Getting Started(ASP.NET MVC) in ASP.NET MVC DocumentEditor control

11 Jan 2022 / 2 minutes to read

Starting with v16.2.0.x, if you reference Syncfusion assemblies from trial setup or from the NuGet feed, you also have to include a license key in your projects. Please refer to this link to know about registering Syncfusion license key in your ASP.NET MVC application to use our components.


To get start with ASP.NET MVC application, need to ensure the following software to be installed on the machine.

  1. .Net Framework 4.5 and above.
  3. Visual Studio

Preparing ASP.NET MVC application

The following steps to create ASP.NET MVC Application.

Step 1: Create ASP.NET MVC Application with default template project in Visual Studio.

Default Template

Step 2: Once your project created. We need to add Syncfusion EJ2 package into your application by using NuGet Package Manager.

Open the NuGet package manager.

Solution Explorer

Install the Syncfusion.EJ2.MVC4 package to the application.

Nuget Demo

After installation complete, this will be included in the project. You can refer it from the Project Assembly Reference.

The Syncfusion.EJ2.MVC4 NuGet package has dependencies, Newtonsoft.Json for JSON serialization and Syncfusion.Licensing for validating Syncfusion license key.

Step 3: Add Syncfusion.EJ2 namespace reference in Web.config

Copied to clipboard
<add namespace="Syncfusion.EJ2"/>
Copied to clipboard
    <add assembly="Syncfusion.EJ2, Culture=neutral"/>

Step 4: Add client side resource through CDN or local package in the layout page _Layout.cshtml.

Copied to clipboard

<!-- Syncfusion Essential JS 2 Styles -->
<link rel="stylesheet" href="" />

<!-- Syncfusion Essential JS 2 Scripts -->
<script src=""></script>

Step 5: Adding Script Manager in layout page _Layout.cshtml.

Copied to clipboard
<!-- Syncfusion Essential JS 2 ScriptManager -->

Step 6: Add the below code to your Index.cshtml view page which is present under Views/Home folder, to initialize the document editor.

Copied to clipboard
Copied to clipboard
public ActionResult Default()
        return View();

Note: Starting from v19.3.0.x, we have optimized the accuracy of text size measurements such as to match Microsoft Word pagination for most Word documents. This improvement is included as default behavior along with an optional API to disable it and retain the document pagination behavior of older versions.

Frequently Asked Questions