How to Change Document View in TypeScript DOCX Editor

14 Aug 20261 minute to read

How to change the document view in the DocumentEditor component

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

let docEdit: DocumentEditor = new DocumentEditor({ layoutType: 'Continuous'});

NOTE

The default value of the layoutType property in the DocumentEditor component is Pages.

How to change the document view in the DocumentEditorContainer component

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

let container: DocumentEditorContainer = new DocumentEditorContainer({ layoutType: 'Continuous' });

NOTE

The default value of the layoutType property in the DocumentEditorContainer component is Pages.