Displaying Variable Images on Forms
  • Ian
    Displaying Variable Images on Forms

    by Ian » Thu Jan 04, 2018 6:21 pm

    I am doing a bit of a tidy-up of our document printing forms, and getting rid of multiple similar versions of the same form. (e.g. we currently have over 2 dozen invoice forms)
    It would be useful if I could selectively include an image on some of the forms. For example, if the location is XXX include an alternative company logo.
    Is there a neat way to do this?
  • COBS Tech Support
    Posts:683
    Joined:Fri Sep 09, 2005 8:23 am

    by COBS Tech Support » Mon Jan 08, 2018 8:54 am

    Instead of inserting an image object, create a field object. On the formula tab specify the file path and make sure you tick Return As Image File.

    For example on the Formula tab the return value might be:

    If X
    Return "\\server\logos\logo1.png"
    Endif

    If Y
    Return "\\server\logos\logo2.png"
    Endif

    The logo's should be generally of the same size and width. Expand the field object by dragging with your mouse to indicate the area that you want to draw in.

    (This is also how the Catalog Wizard templates can support catalogs with customised images on them.)

Who is online

Users browsing this forum: No registered users and 4 guests