I just started using Open XML and am unsure how to insert a file (.docx/.doc) into a word processing document.
I've tried something like the following but get a unknown document error when launching the document with Word 2016.
Using wordprocessingDocument As WordprocessingDocument = WordprocessingDocument.Open(memoryStream, True)
Using addProcessDoc As WordprocessingDocument = WordprocessingDocument.Open(itemView.Items(i).SubItems(3).Text.ToString, True)
Dim tempPart = addProcessDoc.MainDocumentPart
wordprocessingDocument.AddPart(tempPart) 'ERROR: Specified argument was out of the range of valid values.
End Using
End Using