NetOfficeFw / NetOffice

🌌 Create add-ins and automation code for Microsoft Office applications.
MIT License
697 stars 143 forks source link

Pagesetup.Orientation in Word 2016 #279

Closed ZioMick closed 4 years ago

ZioMick commented 4 years ago

Hi, I had an issue using Word lib in a computer with Office 2016. When i create a document based on a template (.dot) where page orientation is set to Landscape, when I save the document it is set in Portrait orientation. I did a test of this property

wrdDoc.Range().PageSetup.Orientation

before saving and it says "wdOrientPortrait" Until Office 2013 all this worked correctly

Thanks in advance for any clue Greetings, Michele

jozefizso commented 4 years ago

Hi @ZioMick, this looks like change in behaviour of MS Word. We are only wrapping the COM API (also called Office VBA in latest Microsoft Docs) of MS Word, so any values returned are coming from Word.

Issues with their implementation can be reported in Stack Overflow, or using Microsoft Partner Network/Enterprise Support, see Office VBA support and feedback