Hi
Using latest .Net2 DLL version 14.8.0 when opening the attached Word document with Load Options LoadFormat set to Auto or Docx I get:
“The document appears to be corrupted and cannot be loaded.”
If the document is opened without the Load Options the error does not occur.
VB.net
code:
Try
Dim AsposeLoadOptions As New Aspose.Words.LoadOptions(Aspose.Words.LoadFormat.Auto)
If Not String.IsNullOrEmpty(iPassword) Then AsposeLoadOptions.Password = iPassword
nDoc = New Aspose.Words.Document(_DocumentPath, AsposeLoadOptions)
pCount = nDoc.PageCount
Catch ex As Exception
pCount = 0
End Try
Please advise
(The document is an extract from a much larger document; the same error occurs with both documents)
Thanks for your attention