LoadOptions.MswVersion

LoadOptions MswVersion property. Allows to specify that the document loading process should match a specific MS Word version. Default value is Word2019

LoadOptions.MswVersion property

Allows to specify that the document loading process should match a specific MS Word version. Default value is Word2019

public MsWordVersion MswVersion { get; set; }

Remarks

Different Word versions may handle certain aspects of document content and formatting slightly differently during the loading process, which may result in minor differences in Document Object Model.

Examples

Shows how to emulate the loading procedure of a specific Microsoft Word version during document loading.

LoadOptions loadOptions = new LoadOptions();
loadOptions.MswVersion = MsWordVersion.Word2007;

Converter.Create()
    .From(MyDir + "Simple.docx", loadOptions)
    .To(ArtifactsDir + "LoadOptions.MswVersion.docx")
    .Execute();

See Also