Change document view

22 Jun 20261 minute to read

How to change the document view in DocumentEditor component

ASP.NET Core DOCX Editor (Document Editor) allows to change the view to web layout and print using the layoutType property with the supported LayoutType

<ejs-documenteditor id="container" layoutType="Continuous"></ejs-documenteditor>
public ActionResult Default()
{
    return View();
}

NOTE

Default value of layoutType in DocumentEditor component is Pages.

How to change the document view in DocumentEditorContainer component

DocumentEditorContainer component allows to change the view to web layout and print using the layoutType property with the supported LayoutType

<ejs-documenteditorcontainer id="container" layoutType="Continuous"></ejs-documenteditorcontainer>
public ActionResult Default()
{
    return View();
}

NOTE

Default value of layoutType in DocumentEditorContainer component is Pages.