How to set AutoRecover property of Workbook

The following code explains how to use Workbook.Settings.AutoRecover property of the workbook. The code first reads the default value of this property which is true, then it sets it as false and saves the workbook. Then it reads the workbook again and reads the value of this property which is false at this time.

C# code to set the AutoRecover property of Workbook

Output

Here is the console output of the above sample code.

AutoRecover: True

AutoRecover: False