Jump to content

Douglas Cogan

Administrators
  • Posts

    243
  • Joined

  • Days Won

    4

Posts posted by Douglas Cogan

  1. Can you post what version of the software you're using, whether PC or Mac? If you compose to PDF what warning /error messages do you get?

    If you are running version 13.0.1 on Mac, I recommend you upgrade to 13.0.2.

    On the advanced tab of the composition options dialog is a setting to limit the output to Latin-1 (or MacEncoding). Try turning that on/off to see if it matters.

  2. Yes, replace this line:

    retstr += Field ("issue_date"+i)+"<t><t>"+Field("check_number"+i)+"<t><t>"+Field("check_amount"+i)+"<br>"

    with this:

    retstr += Field ("issue_date"+i)+"<t><t>"+Field("check_number"+i)+"<t><t>"+FormatNumber("$###,###.00", Field("check_amount"+i))+"<br>";

    That will put in leading dollar signs, commas at the thousands place and force two zeros after the decimal.

     

  3. Hi, the issue is that the <br> tag makes a new line in the same paragraph. Skip if empty only skips the whole paragraph, so it won't skip just a line. But I think you want this:

     

    var retstr="";
    for (i=1;i<=11;i++)
    {
      if (Len(Trim(Field("issue_date"+i))) > 0 && Len(Trim(Field("check_number"+i))) > 0 && Len(Trim(Field("check_amount"+i))) > 0)
        retstr += Field ("issue_date"+i)+"<t><t>"+Field("check_number"+i)+"<t><t>"+Field("check_amount"+i)+"<br>"
    }
    return retstr;

    I think that will work. I can't test this since I don't have your fields, and hopefully the parentheses match up.  This will skip if any of issue_date or check_number or check_amount are empty. If you only want to skip if all of them are empty change the && to || above.
     

    • Like 1
  4. Hi, you can move a character up with the superscript tag. You could make a JS rule called bullet like this:

    return "<span><superscript><f name=wingdings>&#000;</span>"; // replace 000 with the character number you want

    The span tag saves the current font and point size (and superscript) and /span restores them back. You can also control how much the superscript tag moves text up by accessing the global settings (from the paragraph options dialog from the variable text editor.)

    image.png.fb423ab0d23f9b3bf7500d19d65c1970.png

     

     

  5. Hi Rick, sorry that didn't work. I did see a typo where I put .textWrap twice in my note above.

    I don't quite know what you mean that it doesn't work with a graphic frame wrap. What can we use to determine if the graphic frame would be empty? That's what I was putting in the "if" statement above.  What data values can we test to determine the frame would end up empty? We just need to put that in the if clause of the expression in OnRecordStart and we're set.

  6. Hi Rick, you mean, don't wrap text around a picture if the graphic frame is empty, right?

    To do this, first give the text frame a name such as "TheTextFrame" in the frame properties dialog box.

    Then make a new OnRecordStart rule (or add to one if you have one.)

    if (Len(Field("TheGraphic")) == 0)
    {
      TextFrame = FindTextFrame("TheTextFrame");
      TextFrame.textWrap.textWrap =false;
    }

     

    Replace "TheGraphic" with the name of the field that if empty triggers the text to not wrap. Let me know if this works.

     

  7. Hello Sophia, OnRecordStart in regards to FusionPro is a rule that is executed at the beginning of each new record. It is a rule that is called when certain events happen, like when a all the pages are complete after being inserted.  What you wrote above may be correct in other contexts, but in regards to FusionPro it is a rule that is executed after each new record of data has been read from the data source and before any other processing is done.  FusionPro doesn't do any recording of any data. I hope that clears things up a bit.

  8. Hello Tisha, you must have a Designer license.  Designer comes with FP Server or Producer (or with a subscription service like MarcomCentral portal.)

    Did your company perhaps upgrade a set of Creator licenses to a Producer license? In that case, you would compose locally to just one record to approve your design, and send to Producer or Server for composition.

    If you want, you can email your serial number and company name to FusionProSupport@marcom.com and we can check it and see what the status is.

    • Like 1
×
×
  • Create New...