Answered
Unable to set spread property to a text by script
Hi everyone,
Using Framemaker 17 with some javascript, I don't understand why the following code won't change the spread property of the text selection :
var myDoc = app.ActiveDoc;
var myProp = new PropVal();
myProp.propIdent.num = Constants.FP_Spread ;
myProp.propVal.valType = Constants.FT_Metric ;
myProp.propVal.ival = 655 ;
var myTR = myDoc.TextSelection ;
myDoc.SetTextPropVal(myTR, myProp) ;
alert(myDoc.GetTextPropVal(myTR.beg, Constants.FP_Spread).propVal.ival)No error raised, but the alert message sadly gives '0' every time...
Some insight please ?
