This project has moved and is read-only. For the latest updates, please go here.

what is the Hex decimal for office 2007 and above ?



older version office 2003 signature is
#public readonly static FileType WORD = new FileType(new byte?[] { 0xEC, 0xA5, 0xC1, 0x00 }, 512, "doc", #"application/msword");
higher version of office 2007 ? and above

what is the signature for this ?

I already referred the site..
#public readonly static FileType WORDHIGHERVERSION = new FileType(new byte?[] 
{ 0x50, 0x4B, 0x03, 0x04, 0x14, 0x00, 0x06, 0x00 },
 512, "docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document");
but i cant achive it...
can you help to solve this solution.. i


trailmax wrote Aug 13, 2014 at 1:19 PM

Unfortunately there .docx and .xlsx files are just zip files with xml content. There is no easy way to tell weather we are looking on zip file or a docx file by just looking on a file signature. You'll have to look on contents of a file and check if that matches what ,docx file usually have.

This is one of the reasons this project is abandoned - too many possible file types and not all of them are signed by file signature.