Hi All
    In order to get the character count of the whole document, I can use 
"ThisComponent.CharacterCount".
But How to get the character count of the selection? I have to use 
Len(thisComponent.getCurrentSelection().getByIndex(0).getString()), 
but the result is always different from what we get by "Tools > Word Count".
    What I want is to get the same result as "Tools > Word Count".
    Thanks. 

2009-04-21 



sundequan 

Reply via email to