I am using this method to determine the file format of a document loaded in a memorystream. When I use it on a stream containing a WordML document I get ‘Unknown’ as the type. The documentation indicates that it only supports three formats (Doc, RTF and Html). Will you be extending this to support the newer file format?
Hi,
Thank you for your request. I have reviewed the code and it looks like the WordML format should be detected properly. Do you position your stream correctly? Also, could you please save this stream to disk and attach the file to take a look?
I will make sure the documentation will be improved.
Positioning the memory stream back to 0 solves the problem and it is now correctly identifying the file format. I expected your method to reposition the memory stream so it may be worth pointing out in the documentation that this is the user responsibility.
Thanks for your help.
Thanks, we will consider it.