Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: Displaying an image from my C: drive...  (Read 1541 times)

Mitcon

  • Newbie
  • *
  • Posts: 4
    • View Profile
Displaying an image from my C: drive...
« on: August 15, 2019, 12:44:30 AM »
OK, this is not really a new message, but I've tried using some of the examples in the message forums with no success. I'm trying to use the <img> HTML tag in a text field (in the Data section) with no success (I have checked the "Allow HTML" property in the Text Object Inspector list). I get a very faint broken image icon in the field.

Can you give me a Windows 10 specific example?

Location of JPG images: C:\Users\mitcon\Pictures\photoalbum\thumbnails\20060001-tn.jpg

I would like to reference them as: C:\Users\mitcon\Pictures\photoalbum\thumbnails\$D{photomaster.filename}.jpg to make the list dynamic.

It would also make sense, to me, to set the filespec up as a variable $V{filespec} for use in the <img> tag's "source=" property.

I am trying to create an index for my Photo Album with Photo info from the photomaster table and camera settings from the photodetail table. I want to display a thumbnail of the photo as the first field on each line. Everything is working except the thumbnail...

I concur with comments in the other threads. I've worked with other report writers on the HP platform and in the Oracle environment. I LOVE Lime Reports!

Great job guys (guys generically)!
Mitch

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 992
    • View Profile
Re: Displaying an image from my C: drive...
« Reply #1 on: August 15, 2019, 08:35:07 PM »
Hi.
What limereport version do you use?
In version 1.5 you can use ImageItem.resourcePath property in which may contain a path for the file also you can use variables in this property

Mitcon

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Displaying an image from my C: drive...
« Reply #2 on: August 15, 2019, 10:22:02 PM »
Arin:

I take it you are the author of this software? If so, kudos to you! I upgraded from v1.3.12 to v5.1.0 and did a quick test ... it worked flawlessly!

This is an AWESOME piece of software! v1.3.12 was very stable (even on the Window$ platform). I have never had it misbehave, hence no need to upgrade ... until now. Your upgrade of the Image object is great.

Thanks for your help...keep up the good work!
Mitch

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 992
    • View Profile
Re: Displaying an image from my C: drive...
« Reply #3 on: August 15, 2019, 10:46:50 PM »
You are welcome :) and thank you for your kind words about my work.