Ok, i have some progress - finally a i can read .doc files. That's great! But, unfortunately, there was another problem.
I have read about "linebreak" in .doc files, instead "\n". Linebreak denotes "\v". In beginning it works, and ,i started think, what problem was solved, but suddenly, linebreak stopped denotes. In QString it was just empty symbol (""), my condition on detecting empty string was ignored:
@
words = docA->querySubObject("Words");
QString textResult; //будущий результат
int countWord = words->dynamicCall("Count()").toInt(); //кол-во слов в тексте
QString testString;
int asciiCode;
//на самом деле он обманывает, считает зараза с пробелами :(
for (int a = 1; a <= countWord; a++)
{
if(testString.count()==1)
{
asciiCode=testString.toLocal8Bit().toInt();
textResult.append("\v");
}
else if(testString.isEmpty())
{-------//------------}
else if(testString.isNull())
{-------//------------}
else if(testString=="")
{-------//------------}
else if(testString=="\v")
{-------//------------}
else
textResult.append(words->querySubObject("Item(int)", a)->dynamicCall("Text()").toString());
testString.clear();
}
@
What the most intersting, that is ascii code of this empty symbol. It's =0. To tell the truth, i use integer number to detect the code, so I could be wrong.
Please, help somebody with this!