NetOffice icon indicating copy to clipboard operation
NetOffice copied to clipboard

Workbook class missing AutoSaveOn property

Open IainDM opened this issue 2 years ago • 3 comments

https://docs.microsoft.com/en-us/office/vba/api/excel.workbook.autosaveon

IainDM avatar Jun 15 '22 15:06 IainDM

Hi @IainDM, thanks for noticing this. I will look at it.

jozefizso avatar Jun 15 '22 16:06 jozefizso

It looked like a change to _Workbook.cs would do the trick. Something like the code below. but I am new to NetOffice so I'm unsure!

public bool AutoSaveOn
	{
		get
		{
			return Factory.ExecuteBoolPropertyGet(this, "AutoSaveOn");
		}
		set
		{
			Factory.ExecuteValuePropertySet(this, "AutoSaveOn", value);
		}
	}

IainDM avatar Jun 15 '22 21:06 IainDM

This property is available in Microsoft Office 2016, version 2004 (build 12730.20352)

I did not update NetOffice with API from this build yet.

jozefizso avatar Jun 19 '22 14:06 jozefizso

Released in v1.9.0

jozefizso avatar Sep 23 '22 18:09 jozefizso