Target Language of active document

Hi,

I am developing a NativeFileVerifier for a custom XML file type.  I have to check the length limit, something very similar to the corresponding sample. Yet there is a slight deviation from it: The attribute name which gives the maximum allowed lengths is not fixed but varies according to the target language. For example I need to look at the attribute "max-length-fr" for French documents. Here comes my question: How can I retrieve the target language of Active document? I am sorry, this can be very clear API part I have overlooked.  I have tried from ActiveDocument and CurrentProject.

Thanks,

Özkan

Parents Reply Children