Nicola,

 

Does you text frame fill from the top to the bottom, or from bottom to top?

--- 
David A. Sweet 
Web Designer/Graphic Designer 
HKM Direct Market Communications 
A DirectConnectGroup Company 

   _____  

From: Nicola DosSantos [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 30, 2008 12:30 PM
To: FusionPro Users Forum
Subject: [fusionpro] RE: Question on returning different TEXT frames in a 
template

 

Hi Dan,

Thanks for taking the time to respond to my forum question yesterday. I 
apologize for the typing error. I can see how that would be confusing. I am 
working with a variable TEXT frame.

It would be great if someone is able to help me solve the larger issue so I 
will post it in detail now, hopefully in a way that is easy to understand. But 
just so that you know your response yesterday even though you did not know the 
larger issue was definitely appreciated because I was still able to learn from 
it. :)

I have a business card template the has a variable text frame that contains a 
paragraph of contact information that will be made up of variable text fields 
(ex. name, titles, address, phone, etc.) The paragraph that the contact 
information exists in is left justified. But, the left justified edge needs to 
occur at and angle. A few months ago someone from the forum was so nice and 
supplied me with syntax that allowed for this by creating stacking tabs. Below 
I have pasted the syntax for the rule I am using. This rule works exactly as I 
need it to when all of the variable fields contain something. The problem is 
that most of the variable text fields are optional. If someone decides that 
they are not going to use say the fax, address3, and address4 the left edge is 
still an angle and everything compresses up. But because there are less lines 
resulting in fewer tabs all of the text shifts to the left.

Right now this rule is working in a way that it counts the number of lines in 
the paragraph, the last line (or bottom line) does not tab, each line above it 
tabs over one additional time. I guess what I need is a rule that will make it 
so that the first line (or top line) in the paragraph regardless of which 
variable fields ends up existing on that line after optional fields are 
accounted for and the compression has taken place always starts with 14 tabs, 
the next line down regardless of which field ends up on it always starts 13 
tabs over, etc.... I hope this explanation is clear. Please let me know if I 
left any questions unanswered. Any additional help you can provide would be 
appreciated. Thanks so much!

var name;
var title1;
var title2;
var group;
var add1;
var add2;
var add3;
var add4;
var tel;
var phone2;
var fax;
var phone4;
var email;
var altweb 
var l = 0;
var s = "";
var c = 0; 
if (Field("AltWebAddress") != "")
{
s = "";
for (c = 0; c < l; c++)    {
s += "<T>";
 }
l++;
altweb = s + Field("AltWebAddress") + "<br>";
}
else altweb = "";
if (Field("Email") != "")
{
    s = "";
    for (c = 0; c < l; c++)    {
   s += "<T>";
   }
    l++;
    email = s + Field("Email") + "<br>";
}
else email = "";
if (Rule("Phone4_RULE") != "")
{
    s = "";
    for (c = 0; c < l; c++)    {
    s += "<T>";
    }
   l++;
    phone4 = s + Rule("Phone4_RULE") + "<br>";
}
else phone4 = "";
if (Rule("Fax_RULE") != "")
{
    s = "";
    for (c = 0; c < l; c++)    {
    s += "<T>";
 }
    l++;
    fax = s + Rule("Fax_RULE") + "<br>";
}
else fax = "";
if (Rule("Phone2_RULE") != "")
{
    s = "";
  for (c = 0; c < l; c++)    {
    s += "<T>";
   }
   l++;
    phone2 = s + Rule("Phone2_RULE") + "<br>";
}
else phone2 = "";
if (Rule("Phone_RULE") != "")
{
  s = "";
    for (c = 0; c < l; c++)    {
    s += "<T>";
   }
  l++;
   tel = s + Rule("Phone_RULE") + "<br>";
}
else tel = "";
if (Rule("AddressLine4_RULE") != "")
{
    s = "";
for (c = 0; c < l; c++)    {
    s += "<T>";
    }
    l++;
   add4 = s + Rule("AddressLine4_RULE") + "<br>";
}
else add4 = "";
if (Field("Address3") != "")
{
    s = "";
   for (c = 0; c < l; c++)    {
    s += "<T>";
  }
   l++;
    add3 = s + Field("Address3") + "<br>";
}
else add3 = "";
if (Field("Address2") != "")
{
    s = "";
    for (c = 0; c < l; c++)    {
   s += "<T>";
    }
    l++;
    add2 = s + Field("Address2") + "<br>";
}
else add2 = "";
if (Field("Address1") != "")
{
    s = "";
    for (c = 0; c < l; c++)    {
    s += "<T>";
    }
    l++;
    add1 = s + Field("Address1") + "<br>";
}
else add1 = "";
if (Field("GroupName") != "")
{
    s = "";
    for (c = 0; c < l; c++)    {
    s += "<T>";
    }
    l++;
    group = s + Field("GroupName") + "<br>" + "<br>";
}
else group = "";
if (Field("TitleLine2") != "")
{
    s = "";
    for (c = 0; c < l; c++)    {
   s += "<T>";
    }
 l++; 
    title2 = s + Field("TitleLine2") + "<br>"; 
}
else title2 = "";
if (Field("TitleLine1") != "")
{
    s = "";
   for (c = 0; c < l; c++)    {
    s += "<T>";
    }
    l++;
    title1 = s + Field("TitleLine1") + "<br>";
}
else title1 = "";
if (Field("Name") != "")
{
    s = "";
    for (c = 0; c < l; c++)    {
    s += "<T>";
    }
    l++;
name = s + Field("Name") + "<br>";
}
else name = "";
return '<f name="HelveticaNeueLT Std Bold Ital"><z newsize="8.5"><leading 
newsize = "100">' + name +
  '<f Name="HelveticaNeueLT Std Lt Ital"><z newsize="6.5"><leading newsize = 
"85">' + title1 + title2 + group +
  '<f Name="HelveticaNeueLT Std Lt Ital"><z newsize="6.5"><leading newsize = 
"80">' + add1 + add2 + add3 + add4 + tel + phone2 + fax + phone4 + email + 
altweb; 

Nicola DosSantos
 
Ambit Press / Minuteman Press of Cambridge
Five Cambridge Center
Cambridge, MA 02142
Tel: 617.876.3688 
Fax: 617.876.3896 
HYPERLINK "http://www.ambitpress.com"www.ambitpress.com
 
Please send all jobs to HYPERLINK "mailto:[EMAIL PROTECTED]"[EMAIL PROTECTED]



Dan Korn wrote: 

Hi Nicola,
 
It would help to have an idea of the larger issue you're trying to solve
with this multi-frame layout, because there might be a simpler way to
accomplish it.  I'm also a bit confused as to whether you're talking
about text or graphic frames.  (You wrote "graphic" in the subject but
in the message you said, "I have a template that has several variable
text frames".)  Anyway, I'm assuming you mean text frames.
 
etc.......
 
Actually, that same syntax would work for a text rule, if you're
returning a text resource.
 
Dan
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
  

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- FusionPro 5.0 Now 
Available! Variable text on a curve and soft drop-shadows for variable text 
LIMITED TIME upgrade offer of $299 per license for current customers: 
http://fusionpro.printable.com/store/upgrade New licenses available for $599 
each at: http://fusionpro.printable.com/store/ All FusionPro 5.0 customers to 
receive FusionPro 5.1 with Adobe Acrobat 8 and InDesign CS3 support when 
released for FREE. +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- 
Users of FusionPro Desktop have unlimited free email support. Contact Printable 
Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro 
Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to 
fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL 
PROTECTED] -- -- Note: All e-mail sent to or from this address will be received 
or otherwise recorded by the e-mail recipients of this forum. It is subject to 
archival, monitoring or review by, and/or disclosure to someone other than the 
recipient. Our privacy policy is posted on www.printplanet.com -- 


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.16/1251 - Release Date: 1/30/2008 
9:29 AM



No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.19.16/1251 - Release Date: 1/30/2008 
9:29 AM
 


+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
FusionPro 5.0 Now Available!


Variable text on a curve and soft drop-shadows for variable text


LIMITED TIME upgrade offer of $299 per license for current customers:
http://fusionpro.printable.com/store/upgrade

New licenses available for $599 each at:
http://fusionpro.printable.com/store/

All FusionPro 5.0 customers to receive FusionPro 5.1 with
Adobe Acrobat 8 and InDesign CS3 support when released for FREE.
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
--
Users of FusionPro Desktop have unlimited free email support. Contact Printable 
Support at [EMAIL PROTECTED]
--
View FusionPro Knowledge Base, FusionPro Samples at
www.printable.com/vdp/desktop.htm

--
You are currently subscribed to fusionpro as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
--




--
Note:  All e-mail sent to or from this address will be received or otherwise 
recorded by the e-mail recipients of this forum. It is subject to archival, 
monitoring or review by, and/or disclosure to someone other than the recipient. 
Our privacy policy is posted on www.printplanet.com
--

Reply via email to