LoadOptions.RecoveryMode
LoadOptions RecoveryMode property. Defines how the document should be handled if errors occur during loading. Use this property to specify whether the system should attempt to recover the document or follow another defined behavior. The default value is TryRecover.
LoadOptions.RecoveryMode property
Defines how the document should be handled if errors occur during loading. Use this property to specify whether the system should attempt to recover the document or follow another defined behavior. The default value is TryRecover.
public DocumentRecoveryMode RecoveryMode { get; set; }
Examples
Shows how to disable document recovery attempts upon loading corrupted document.
LoadOptions loadOptions = new LoadOptions();
loadOptions.RecoveryMode = DocumentRecoveryMode.None;
Converter.Create()
.From(MyDir + "Simple.docx", loadOptions)
.To(ArtifactsDir + "LoadOptions.RecoveryMode.docx")
.Execute();
See Also
- enum DocumentRecoveryMode
- class LoadOptions
- namespace Wordize.Loading
- assembly Wordize