Open-XML-SDK icon indicating copy to clipboard operation
Open-XML-SDK copied to clipboard

ExternalRelationships missing Word Docs from results

Open rjgoodman opened this issue 2 years ago • 3 comments

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.

rjgoodman avatar Sep 13 '23 15:09 rjgoodman

Hi @rjgoodman , Can you share the .docx file with the links?

mikeebowen avatar Sep 18 '23 22:09 mikeebowen

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 avatar Sep 18 '23 22:09 rjgoodman

@rjgoodman We would need something to be able to reproduce what is occuring

twsouthwick avatar Oct 16 '23 22:10 twsouthwick