Expand my Community achievements bar.

Dynamic image in header

Avatar

Level 1

Hello,

I've been starting to use Livecycle designer (version 8 it seems) a few weeks ago and I am currently confronted to a problem that I can't to solve.

Basically, I need to create a Fragment that serves as a header for multiple documents.

This Fragment contains an image field that changes depending on certain values on my form and of course, being a header, it is placed in the master page.

Now, for some reason,the fragment works if my it is placed in the main page, but doesn't display any image if I place it in my master page.

I have been using the following code to load the image:

imageField.value.image.href = "../Pictures/myPicture.png";

Alternatively, I have also tried to use a dynamic image field with the same code, and although it displays the picture in Designer (even when in the masterpage), the pdf is "corrupted" when I load it from Livecycle.

Am I taking the wrong approach here? Is there anything that I can do?

Thank you for any light you can shed on the matter.

1 Reply

Avatar

Level 10

Hi,

Don't have a complete answer, but you might get some indication for working with images here: http://assure.ly/mcFrC6.

You should also have a look at John Brinkman's post: http://blogs.adobe.com/formfeed/2009/11/linked_vs_embedded_template_im.html.

If you are using an ImageField object on the Master Page you might need to set its binding to Global. So that as new pages are rendered on the form, the image will be displayed.

In relation to the href, I believe that you are hitting a security restriction.

I am not sure how best to get the image in from LiveCycle, maybe someone else will have a better view.

Good luck,

Niall