Developing a tool to recognise MS Office file types ( .doc, .xls, .mdb, .ppt ) RRS feed

  • Question

  • Dear Sir/Madam,

                  I am supposed to develop a tool which can identify the correct Microsoft Office File types (.doc, .xls, .mdb, .ppt). The tool will take an MS office file ( .doc, .xls, .mdb, .ppt) as input and will return the correct file type.
    The file identification should be done based on the contents, not the extension which can be renamed. How can i solve this problem? Can the binary format of MS office files be helpful in this regard? any other solution?

    In addition, OpenOffice opens the correct type of application for each of these MS office files so it means OpenOffice have some way to differentiate between MS office file types. Any OpenOffice library which can be helpful to me? anything else you want suggest?

    Thanks. :0)
    Thursday, June 25, 2009 9:05 AM