Use of Images Across Views

S

Sam

I have been using InfoPath for several years (both 2003 & 2007) and love the
ease of use and flexibility it offers. However, something that’s always
bugged me is the way it manages images across multiple views. If the form
was a website there would normally be a folder housing all of the site’s
images. Different pages on the web site would then access these images and
display them as required. This allows for a single image to be referenced
across multiple pages and keep web site maintenance to a minimal.

When InfoPath was developed this sort of logic seems to have gotten lost. I
currently have an InfoPath form with 5 views that I want to all have the same
background image. When I insert the background image into the views this
background image stored in the .xsn file 5 different times as separate images
(this first one will be the image file name, all the rest will have a
sequential number afterwards). This is not only a pain to maintain but
causes the end user to download the same image 5 times in order to access the
form. On systems with minimal bandwidth the delay in opening the form can be
a deal breaker.
The only solution I’ve found to get multiple views to use the same image
without duplication is to manually code it into the manifest.xsf file. This
is extremely painful to do and just not worth it most of the time.

Has anyone else found a better solution to optimize the way InfoPath manages
images across multiple views?

Thanks,
Sam
 
S

Swathi (GGK Tech)

Hi,

You can use only one image across the multiple views. First add the image as
back ground for one view. Go to that view’s xsl and copy the code. Now open
the second view’s xsl and paste that code. Do the same for other views. Make
sure that you have a back up file before doing this not to lose if anything
went wrong.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top