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'});The default value of the
layoutTypeproperty in the DocumentEditor component isPages.
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' });The default value of the
layoutTypeproperty in the DocumentEditorContainer component isPages.