Declined
Feature Request
Automatically detect document type on load
Hello,<br /><br /> <br /><br /> I think it would not be difficult to automatically detect the type of document which are loaded, appended.<br /><br /> So it should not be necessary for the user to give a StreamType for these operations.<br /><br /> <br /><br /> Thanks
Comments (2)
I would actually disagree with this one, as you can detect yourself and pass the correct type to TX, this gives the developer much more control, and also allows you to limit the document types you wish to load.
Otherwise there could be cases when someone can load a .DOCX but you specifically do not wish that to be permissible in your application under the current licence.
Just a thought
I don't think so.
You are already detecting the type of the document as Text Control says when it is not the required type.
You say we must detect it then you control it. Twice the work.
If we could have an AnyStreamType option, we would have the choice to specify a type or not. This gives us more control and flexibility. We can continue to limit the document types we wish to load... or not.
Here I have doc and docx in a BLOB field of a DB. I load it in a byte array then into Text Control. Now I must test the type of the document in the byte array to give the correct type to Text Control. Then you do this same test again to be sure I have given the good document type !