View Single Post
  #3  
Old March 4th, 2013, 05:19 AM
sandig@customprinters.com sandig@customprinters.com is offline
Regular Contributor
 
Join Date: Feb 2010
Posts: 62
Default Re: suppress a frame based on the copyfit of another frame

Can you help me with that OnRecordStart text Measure rule to suppress the frame? I very novice here and do not know how to write that. How do you write the text measure to determine if copy does not fit in the frame?

var tm = new FusionProTextMeasure;
tm.useTags = true;
tm.CalculateTextExtent(Resource(BCText));
var tmWidth = tm.textWidth;

if (tmWidth > "XX??") //if text exceeds frame
{
FindTextFrame("textblock").suppress = true;
FindTextFrame("textblocklong").suppress = false;
}
else
{
FindTextFrame("textblock").suppress = false;
FindTextFrame("textblocklong").suppress = true;
}

Thanks for your help.
Reply With Quote