I’m trying to open a RTF (see attached) file with Aspose.Words 22.214.171.124 but I get the following error:
An unhandled exception of type ‘Aspose.Words.FileCorruptedException’ occurred in aspose.words.dll
Additional information: The document appears to be corrupted and cannot be loaded.
The file can be opened with Microsoft Word, I tried with the latest release of Aspose.Words but the error persists.
Here is the code:
Try Dim license As Aspose.Words.License = New Aspose.Words.License license.SetLicense("Aspose.Words.lic") Catch ex As Exception End Try Dim doc As Aspose.Words.Document doc = New Aspose.Words.Document("c:\2007TA1765.rtf") 'or 'doc = New Aspose.Words.Document("c:\2007TA1765.rtf", Aspose.Words.LoadFormat.Rtf, "")
Can You please help me.