I'm running CS6 & developing a pluging for that.
Currently I'm reading texts written in a .indd file & print them to a text file using ITextModelClass..
But I can't read texts written as TextVariable & I tried to convert them to strings using
ITextVariable* textVariable,
textVariable->VariableToString(varUIDRef, temp, kTrue);
when i run the above code, it returns texts that are not relevant to the current .indd file.
when i use "kFalse" instead of kTrue it gives a runtime error & return nothing.
So how can i convert "TextVariable " to a readable text.
Thanks..