Go Back   MarcomCentral (PTI) and FusionPro User Communities > Software-Related Talk > The JavaScript Library > Formatting Text

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old February 25th, 2015, 04:08 PM
rjhansen rjhansen is offline
Junior Community Member
 
Join Date: Feb 2015
Location: Oklahoma City
Posts: 18
Default Re: drag and drop rule problem

I made another change which is reflected in the file I just uploaded. Still not fixing the problem.
Reply With Quote
  #12  
Old February 25th, 2015, 05:12 PM
step's Avatar
step step is offline
Senior Contributor
 
Join Date: Jan 2010
Location: Charlotte, NC
Posts: 955
Default Re: drag and drop rule problem

Sorry, I probably should have specified that by "collect" I meant to select "Collect.." from the "FusionPro" menu. Without doing that, your rules didn't come over.

Regardless, I've attached an example in which I've got my code working as I would expect it to.

Another way to accomplish what I think you're trying to accomplish would be to insert the "TableNo" variable into your text frame and apply Copyfitting to it (click on the text frame and select "Overflow" from the text pallet). From there you'd select "adjust text to fit" and "allow text to expand to fill." Doing this will create an "OnCopyfit" call back rule that would look something like this:
Code:
if (!Copyfit(new MagnifyAttributes("text", 25, 400, 6, 72)))
    ReportWarning("Could not copyfit text in flow " + 
                  FusionPro.Composition.CurrentFlow.name);
The "25" is the lowest magnification factor it will apply to your text to get it to fit. The "400" is the max. So it will magnify your text a maximum of 400% the original pointsize in order to get the text to fill the frame. The last two numbers are the min and max (respectively) pointsize the function is allowed. So, by default, Copyfit will only increase the size of the text to 72pt. You can change that parameter to "250" and then there's no need for any rule.
Attached Files
File Type: zip 122348 Speakers Ball Table Tent Numbers.zip (11.0 KB, 2 views)
__________________
Ste Pennell
FusionPro VDP Creator 9.3.15
Adobe Acrobat X 10.1.1
Mac OS X 10.12

LinkedIn
Reply With Quote
  #13  
Old February 26th, 2015, 07:57 AM
rjhansen rjhansen is offline
Junior Community Member
 
Join Date: Feb 2015
Location: Oklahoma City
Posts: 18
Default Re: drag and drop rule problem

Step,

Thanks, that does exactly what I want it to do. I will have to look at the rule you made when I get a chance to see what the problem with mine was. And thanks for the info on the copy fitting. I played with that a little bit when my rule wasn't working but was having trouble getting it to do what I wanted. Your explanation should help me figure out how that works.

I really appreciate your time and help with this.
Reply With Quote
  #14  
Old February 26th, 2015, 08:02 AM
rjhansen rjhansen is offline
Junior Community Member
 
Join Date: Feb 2015
Location: Oklahoma City
Posts: 18
Default Re: drag and drop rule problem

I was missing "TaggedDataField("TableNo")". I had "Field("TableNo") which is why my field was getting dropped in twice. Again, thanks for all the help.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:46 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) 2011, PTI Marketing Technologies™, Inc.