Sets or returns whether Excel will recommend - when the workbook is opened - that it be viewed in read-only mode.
public boolean ReadOnlyRecommended{ get; set; }
Public Property ReadOnlyRecommended() As Boolean
//--- Get the ReadOnlyRecommended value for the workbook
bool readOnlyRec = wb.ReadOnlyRecommended;
//--- Set the ReadOnlyRecommended value for the workbook
wb.ReadOnlyRecommended = true;
'--- Get the ReadOnlyRecommended value for the workbook
Dim readOnlyRec As Boolean = wb.ReadOnlyRecommended
'--- Set the ReadOnlyRecommended value for the workbook
wb.ReadOnlyRecommended = True