Free Support Forum -

Check for Corrupted Documents

Is there any way to use Aspose.Words to check if Microsoft Word will think a document is corrupt? Sometimes we receive doc files that give errors when trying to open with Word such as “The document is too large for Word to handle” or that have headers or page numbers that are missing or with incorrect formatting. These files came from user’s computers and were not created by Aspose. I tried opening a few of them with Aspose.Words, and it didn’t throw any exceptions. I would like a way to be able to scan the files without having to open them all in Word manually.


Hi Eric,

Thanks for your inquiry. Aspose.Words throws Aspose.Words.FileCorruptedException during document load, when the document appears to be corrupted and impossible to load. In case Aspose.Words encounters a problem that can be resolved upon loading a document, it recovers a document silently and does not throw any exceptions. Re-saving such documents back to the disk using Aspose.Words might resolve your issues. If we can help you with anything else, please feel free to ask.

Best regards,