Results 1 to 5 of 5
  1. #1
    New Lounger
    Join Date
    Sep 2002
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    REF, Bookmarks and blank lines (2000)

    We have an automated process in place that uses Bookmarks and REF fields to populate a document. We cannot change this to use Merge fields. Below is the address block we are having the problem with. When Address2 is empty, a blank line appears. Of course, we don't want this to happen. I'm pretty sure the answer is an IF field of some kind, but I'm not sure how the whole thing works. Any insight out there? Much appreciated...donna

    { REF FirstName * CHARFORMAT } { REF LastName * CHARFORMAT }
    { REF Address1 * CHARFORMAT * MERGEFORMAT }
    { REF Address2 * CHARFORMAT * MERGEFORMAT }
    { REF City * CHARFORMAT * MERGEFORMAT }, { REF Province * CHARFORMAT *
    MERGEFORMAT }
    { REF PostalCode * CHARFORMAT * MERGEFORMAT }

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: REF, Bookmarks and blank lines (2000)

    Try<pre>{ IF { REF Address2 } = "" "" "{ REF Address2 }
    " }</pre>

    Note the use of quotes and a paragraph end within the quotes.

  3. #3
    New Lounger
    Join Date
    Sep 2002
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: REF, Bookmarks and blank lines (2000)

    Almost perfect, Hans. Thanks for responding so quickly. But I'm left with the following REF text. Any suggestions?

    Mary Poppins
    120 Elm St.
    REF
    Hearst, ON
    L1L 1L1

  4. #4
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: REF, Bookmarks and blank lines (2000)

    Hi Donna:
    The code that Hans has showed you should go right next to the code for { REF Address1 * CHARFORMAT * MERGEFORMAT }. Do not put it on it's own line. See the attached file for the correct code that you can copy & paste, if you have trouble. Note that the curly braces are inserted with Ctrl+F9, not typed.
    Attached Files Attached Files

  5. #5
    New Lounger
    Join Date
    Sep 2002
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: REF, Bookmarks and blank lines (2000)

    Thanks so much. Seems to do the trick. I bow to your great knowledge!

    Cheers...Donna

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •