API Used : FileFormatType fmt = CellsHelper.DetectFileFormat(path);
Actually I am trying to detect the file format type for an XPS document
fileformattype not detecting xps formats
I am getting the format as Unknown
but the same function call is actually able to detect PDf, ppt and docx jobs.
Hi Mathan,
Thank you for contacting Aspose support.
Please note, Aspose.Cells APIs can detect Office file formats along with a few other formats that are supported by Aspose APIs. Unfortunately, XPS format is not one of such formats therefore the result returned by DetectFileFormat method is correct. I see you have created another thread in Aspose.Total support forum with same concerns. Let us check which Aspose API is capable of detecting XPS file format and get back to you on the other thread.
Adding more, you are using the obsoleted method (CellsHelper.DetectFileFormat) to detect the file formats. You should be using FileFormatUtil.DetectFileFormat for the same purpose.