ExternalRelationships missing Word Docs from results
I'm writing a VB.NET utility for generating a list of all files linked to by a Microsoft Word doc. The file in question links both to Excel files and to other Word documents. I'm currently using this code:
Dim OOXMLDoc As WordprocessingDocument = WordprocessingDocument.Open(fileNameAndPath, isEditable:=False)
Dim linkUris As IEnumerable(Of System.Uri) = From rel In OOXMLDoc.MainDocumentPart.ExternalRelationships
Select rel.Uri
The results contain all the relevant spreadsheet links, but the links to the word documents are missing.
Hi @rjgoodman , Can you share the .docx file with the links?
Hi @rjgoodman , Can you share the .docx file with the links?
Sorry, they're docs from work that I'm not allowed to share. It seems to happen across the board, though. I've tried it with several word docs and the result is always the same. Spreadsheets are there, word docs aren't.
@rjgoodman We would need something to be able to reproduce what is occuring