Getting unsupported file format exception for XLS and PPT

Hi Team,

We are using the Aspose.Words.jdk15.jar for loading the documents. We have tried for XLS and PPT files, we are getting below exception

com.aspose.words.UnsupportedFileFormatException: Unknown file format.
at com.aspose.words.Document.?Y(Unknown Source)
at com.aspose.words.Document.?Z(Unknown Source)
at com.aspose.words.Document.(Unknown Source)
at com.aspose.words.Document.(Unknown Source)
at com.aspose.words.Document.(Unknown Source)
at com.cisco.asit.icn.aspose.util.DocumentUtil.getDocument(DocumentUtil.java:100)

We are using the “com.aspose.words.Document.Document” class to load the documents and if the type is XLS or PPT, we are getting the above error.

Please suggest us workaround for these type of files.

Hi Srinivas,


Thanks for your inquiry. Aspose.Words is a class library that enables your applications to perform a great range of document processing tasks. Aspose.Words supports DOC, DOCX, RTF, HTML, OpenDocument, PDF, XPS, EPUB and other formats. With Aspose.Words you can generate, modify, convert, render and print documents without utilizing Microsoft Word®.

Please note that you can only load the files mentioned in following documentation link into Aspose.Words DOM.
http://www.aspose.com/docs/display/wordsnet/LoadFormat+Enumeration

Please use the Aspose.Cells to work with xls/xlsx and Aspose.Slides to work with ppt/pptx files.