Lantica Software Support Center
Lantica Software Home Page
Order Sesame Getting Started Support Center Contact Us Company Downloads Q&A ™  
Search

Knowledgebase Home

Maintain the aspect ratio of an image between a Layout Element and a Report

One way to do this is to make the Report LE that is bound to your image field invisible. Then add a new, unbound value box element, and program it like this:

ThisElement = "<IMG SRC='C:\Sesame2\" + Image + " width='100'>"

A few notes:

  1. Replace "Image" with the name of the Report LE that is bound to your image field (the one you made invisible above).
  2. Modify "C:\Sesame2\" to "C:\Sesame2\Pics\" or as needed to point to the actual location of your images, keeping in mind that your image field may or may not contain part of the path (e.g. "Pics\MyImage.jpg"), depending what your Image Path is set for in the Application Property Manager.
  3. Adjust the size of the image in the Report by modifying the value after "width". You could use "height" instead, but you should not use both at the same time. By only setting one, you will maintain the aspect ratio of the image.

Properties ID: 000183   Views: 926   Updated: 13 years ago
Filed under:
Programming
Form/Database Design
Report Design

Copyright Lantica Software, 2003-2025 All rights reserved