HTML code for image in report

Discuss the HanDBase for Windows Desktop program, conduits, and add-ons.

HTML code for image in report

Postby bill2001 » Mon Feb 21, 2011 10:21 pm

Hi there,

I am trying to write a report that will output and image is in a record. Could any help me with the code to enter in the report?

Cheers,
Lawrence
bill2001
 
Posts: 4
Joined: Mon Feb 21, 2011 10:18 pm

Re: HTML code for image in report

Postby dhaupert » Tue Feb 22, 2011 11:49 am

Hi there,

By image are you referring to the signature/image field or a photographic image stored in a file elsewhere?
dhaupert
 
Posts: 4111
Joined: Tue May 26, 2009 11:51 am

Re: HTML code for image in report

Postby bill2001 » Tue Feb 22, 2011 1:35 pm

I guess I should give more detail.

I have a database on on an iPhone4. One of the fields is of the external type, camera. I have another field with the image name.

I want to create a report that will print the .png file that is created. The file is in the ../Handbase/Image/ folder.

Thanks,
Lawrence
bill2001
 
Posts: 4
Joined: Mon Feb 21, 2011 10:18 pm

Re: HTML code for image in report

Postby dhaupert » Wed Feb 23, 2011 3:16 pm

Hi Lawrence,

Sorry for the delay, had to take some time to build up an example as I hadn't tried this before! Here's what I did:

Create a database (named Database Name) with a field (Field 1) storing the image file name.
Create a report like this:

Database Name
<b>Hi</b><br>
File Name:<field1>
<img src="C:\Documents and Settings\Dave\My Documents\HanDBase\Images\<field1>">


The last line is the one of significance, it will show the image who's file name is stored in Field1. I hope this helps!
dhaupert
 
Posts: 4111
Joined: Tue May 26, 2009 11:51 am

Re: HTML code for image in report

Postby bill2001 » Wed Feb 23, 2011 3:56 pm

Works!!

Thanks a ton.

I will recommend this software highly at any opportunity. Awesome support!

Lawrence. :D
bill2001
 
Posts: 4
Joined: Mon Feb 21, 2011 10:18 pm


Return to HanDBase for Windows

Who is online

Users browsing this forum: No registered users and 1 guest