I'm trying to set the the Paper source of an existing .docx
file from my C#
code. I don't know if
1. Word is installed on the computer,
2. Word format is OpenXML
or not (that depend's on the computer's installation as far as I understood).
I've found two approaches :
- using Interop
as described here, with following properties,
- using OpenXML
as described here.
I am unsure about which way to go and if this will result in a "stable" solution, in the sense that it is not sensitive the configuration of the machine on which the code is executed (is Word installed or not, which version, which configuration, ...).
Which way should I go and what limitations will I have?