Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExternalRelationships missing Word Docs from results #1526

Open
rjgoodman opened this issue Sep 13, 2023 · 3 comments
Open

ExternalRelationships missing Word Docs from results #1526

rjgoodman opened this issue Sep 13, 2023 · 3 comments

Comments

@rjgoodman
Copy link

rjgoodman commented Sep 13, 2023

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.

@mikeebowen
Copy link
Collaborator

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

@rjgoodman
Copy link
Author

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.

@twsouthwick
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants