It seems that function “save2word” is a custom file submitted by a third party vendor or developer on File Exchange here .
I understand that you are trying to change the paper orientation by using “get” and “set”, but I’m not exactly sure which object and property you refer to. Are you using the following command or something else?
The MathWorks does not officially support the files submitted by third parties, but here are a few things you could try:
- Contact the file owner and ask for suggestions on the Office 2016 workflow.
- Try some similar functions available on File Exchange which are related to “save2word”. You could locate this information on the File Exchange page under the File Information section. For instance, the function “ WriteToWordFromMatlab ” is inspired by “save2word”, and you may want to check this out to see if it resolves the issue.
- Customize the "save2word" function with the feature that you are looking for. This discussion on MATLAB Newsgroup seems related to what you are trying to achieve. Refer to the hyperlink and see if the code snippet helps you change the paper orientation.