Jump to content

RCardinale

Registered Users - Approved
  • Posts

    14
  • Joined

Posts posted by RCardinale

  1. I am creating a title field that has two routines. The first is:

    if(Field("Manual Title")== "")

    return ""

    else

    return Field("Title");

     

    The second part to this is:

    if(Field("Title")== "None")

    return ""

    else

    return Field("Title");

     

    Each works fine individually. How do I combine them so that the 'Manual Title field' is checked first, and then if the 'Title field' is defaulted to, it is checked for the word 'None'?

  2. ok, here is an output file. First pages, second line The end is moving with the variable text.

     

    This is what I have written:

    var content = Field("D.O.B.");

    var font = "ITC Avant Garde Std ELt Cn";

    var pointSize = 8;

    var frameName = "Rec DOB";

    var line = ": ___________________________________";

     

    return CopyfitLine(content, line, font, pointSize, FindTextFrame(frameName) .getsettableTextWidth() / 100.0, 2, true);

     

    Thank you for your assistance.:)

    Voucher-Output.pdf

  3. Ok. Success. Fixed the Frame name and get the appropriate data. However, I still am left with my original issue. I need the end of the line to be in the same place, no matter what the variable text is. IE

    Recipient D.O.B: __________________.

    Recipient Maiden Name: ____________.

     

    Is there a way to do that? Maybe a calculation of some sort?

  4. Please forgive me, I'm new to this. How do I 'name the text frame', and where would I do that?

     

    I wrote:

    var content = Field("D.O.B.");

    var font = "ITCAvant Garde Std XLt Cn";

    var pointSize = 8;

    var frameName = "RecipientDOB";

    var line = "________________";

    return Copyfitline(content, line, font, poinSize, FindTextFram(frameName) .GetSettableTextWidth() / 100.0, 2, true;

     

    It comes back with an error 'FrameName is not defined.'

×
×
  • Create New...