imageExpression and image path - Images not displayed

0

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: 1 year 3 months ago

2 Answers:

0

$F is only used for fields.  Try something like

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

elizam's picture
5839
Joined: Mar 5 2012 - 9:19am
Last seen: 1 year 1 month ago
0

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: 1 year 3 months ago
Feedback
randomness