Discussions

 View Only
  • 1.  How do I display a picture on a form or report with a specified height and/or width?

    Posted 04-24-2018 05:49
    I need to capture pictures from an iPhone and then display them on the form with a specific height and/or width. I have been able to capture the picture using a file attachment field. I have not been able to get the right syntax for displaying the resized picture.

    Any help is appreciated.


  • 2.  RE: How do I display a picture on a form or report with a specified height and/or width?

    Posted 04-24-2018 05:54
    Try appending a space and then

    width='75' >

    If you are able to post you current formula I can help more


  • 3.  RE: How do I display a picture on a form or report with a specified height and/or width?

    Posted 04-24-2018 06:09
    Hi Jeff,

    No worries. Here you go.

    If([Your attachment field]=null,null,"<img src='"&URLRoot()&"/up/" & Dbid () & "/a/r" & [Record ID#] & "/e217/v0' height='16' width='20' />")
    Replace 217 with your attachment field ID and adjust height and width as per your need.

    Thanks,
    Gaurav


  • 4.  RE: How do I display a picture on a form or report with a specified height and/or width?

    Posted 04-25-2018 13:33
    Keep in mind that if you want to keep proper aspect ratios on the images, pick only one dimension to control.  Choose either height or width, not both.

    I personally like height because it makes reports more consistent.