We are using Aspose 21.1
We have a docx openxml file,that we have to insert a docx file to header,
after inserting the file, if we use word to open the file,
there are dialogs warning us there is an error about header,
but we can conitnue, and word can ignore the error and load the file properly.
in code, if we set word application invisible, word application can bypass these warnings and works properly.
but in aspose, it throws an exception, we can not bypass this error.
Is there any flags in aspose, so we can just ignore the error, or aspose can fix the issue automatically, or something Aspose can get a fix for to handle this without prompts?
------------ Aspose Exception ---------------------
The document appears to be corrupted and cannot be loaded.
Cannot find part ''.
Stack Trace:
at .(String )
at .( , String , ImportFormatMode )
at . β( )
at . β( )
at .(CompositeNode )
at .( )
at .( , )
at .(DocumentBase )
at .()
at . β()
at .()
at .()
at .()
at Aspose.Words.Document.(Stream , LoadOptions
InsertDocxToHeader.docx (67.3 KB)