Friday, May 30, 2014

How to apply a background Image in InfoPath Form

Open your InfoPath Form. Then follow the below steps.

Page design -> Properties -> Check Use a background Picture -> Browse the picture you want to set for background and click on OK


























  

Set Image as Form background

Extract the InfoPath CAB file into a directory using the File – Extract Form Files function.
Once the files are extracted into a directory they will contain the following files. Notice the Manifest.xsf file.

Using Notepad (or another text editor) hand edit the view1.xsl to place the image within the InfoPath solution. Add the following line to the <body> element.

style="background-image:url('image001.jpg')"


 Once this is done you can right click and select “Design” on the Manifest.xsf form. This open the InfoPath form in design mode and the background image is visible. 



No comments:

Post a Comment