imageExpression and image path - Images not displayed

I am trying to display images in a report. To that end I have an imageExpression.

<imageExpression><![CDATA[$F{picture1}]]></imageExpression>

I even included a border to see if it would show up in case there was a problem displaying the image but no luck on that either.

I have tried setting $F{picture1} field to:

  • \\192.168.10.16\castit\images\2005\08\1921.JPG
  • //192.168.10.16/castit/images/2005/08/1921.JPG

but with no luck in either case.  The image is stored on a share on a remote computer.  I can navigate to the image using Windows Explorer so I know the image is there.  I can click on the image and display it.

I can past the top path into windows explorer and it displays the image.

Any ideas?

Thanks.

 

Bob.Lawson's picture
Joined: Jan 26 2017 - 4:58am
Last seen: 2 years 10 months ago

2 Answers:

$F is only used for fields.  Try something like

<imageExpression>"\\192.168.10.16\castit\images\2005\08\1921.JPG"></imageExpression>

elizam's picture
13972
Joined: Mar 5 2012 - 9:19am
Last seen: 2 years 8 months ago

The issue is I want to pass in the location of the picture.  I do not always wany to have the same picture.  I have a detail line with two picture positions on it.  I have a cursor with basically two fields(picture1 and picture2).  If I have 4 pictures I would have two rows and so on.

 

Bob.Lawson's picture
Joined: Jan 26 2017 - 4:58am
Last seen: 2 years 10 months ago
Feedback
randomness