Hi Oliver,
Hi Oliver,
Regarding WORDSNET-14668, our product team has completed the work on your issue and has come to a conclusion that this issue and the undesired behavior you are observing is actually not a bug in Aspose.Words. So, we will close this issue as ‘Not a Bug’. Please see the following analysis details:
You change host name in file names of OLE links from hla-sbs to ASPOSE DEMO. The new name contains a space. MS Word 2013 raises an exception on opening the output file, ‘The file is corrupted and cannot be opened’.
If we remove a space in the ASPOSE DEMO string in the code, the error disappears.
If we add a space (as encoded as %20 as a simple char) into host name of a link file name in the source document by manual editing of the document.xml.rels part, MS Word 2013 raises the exception too.
Spaces in other elements of file name does not cause the exception.
We cannot try creating a link with a space in host name by using MS Word, since it does not add a non-existent file item into the relationship part, and we cannot change computer name to have a space, MS Windows forbids it.
We have not found mentions of forbidden spaces in link host names in DOCX format documentation.
So, it is not a bug. MS Word 2013 does not allow spaces in host names of link file names. Or maybe it is a bug of MS Word 2013 and earlier, since MS Word 2016 does not raise the exception.
Best regards,