I am facing this error as it is not taking path to store word document, i tried different paths also, but still the same error is coming.
This appear to be a folder access issue. You can use run following windows command to grant access to yourself in the folder in which you want to write the document. This is standard windows command to grant access to everyone in a particular computer folder
<folderpath> /`t /grant Everyone:(OI)(CI)F