A
Andrew W. Jones
I have a Word master document that has subdocuments. I have an Application
level addin that needs to access the customxmlparts of the subdocuments. Is
this possible?
I tried the following:
foreach (Word.Subdocument sub in document.Subdocuments)
{
Word.Document subDoc = sub.Open(); // Fails with HRESULT E_FAIL
// Access subDoc's customxmlparts here
subDoc.Close(ref missing, ref missing, ref missing);
}
but it fails when opening the subdocument.
I haven't seen any portion of the Word object model that would allow direct
access to subdocument customxmlparts either.
Cheers
level addin that needs to access the customxmlparts of the subdocuments. Is
this possible?
I tried the following:
foreach (Word.Subdocument sub in document.Subdocuments)
{
Word.Document subDoc = sub.Open(); // Fails with HRESULT E_FAIL
// Access subDoc's customxmlparts here
subDoc.Close(ref missing, ref missing, ref missing);
}
but it fails when opening the subdocument.
I haven't seen any portion of the Word object model that would allow direct
access to subdocument customxmlparts either.
Cheers