Hi,
With Word 2010 I was able to use a macro to export PDF from Word using the commandline:
C:\Users\a_user>"C:\Program Files (x86)\Microsoft Office\Office14\WINWORD.EXE" /mExportToPDF /q "C:\folder\document.docm"
When I try to run the same command for Word 2016, the PDF conversion does not work, and instead Word opens the document:
C:\Users\a_user>"C:\Program Files (x86)\Microsoft Office\root\Office16\WINWORD.EXE" /mExportToPDF /q c:\folder\a_document.docm
I cannot find any documentation about the command line switches in Office 2016, apart from some people mentioning problems:
- https://social.technet.microsoft.com/Forums/office/en-US/a01ac9a4-c170-4ff0-bd64-33d5bfe19d81/word-2016-no-longer-supports-the-n-command-line-switch?forum=word
- https://social.technet.microsoft.com/Forums/en-US/8684da70-ef6c-4896-ac79-daa2be323d60/word-2016-no-longer-supports-the-r-command-line-switch?forum=word
The old documentation does not mention Word 2016 at all:
https://support.microsoft.com/en-us/help/210565/how-to-use-startup-command-line-switches-to-start-word-2010,-word-2007,-word-2003,-word-2002,-and-word-2000
my question: should the switches still work as before? Either they don't, or something else has changed, which I haven't figured out yet.
with best regards,
Philipp