Quantcast
Channel: Adobe Community : Popular Discussions - LiveCycle Designer
Viewing all articles
Browse latest Browse all 16286

How to change master page subform background colour

$
0
0

I have a form with two master pages. On each master page there are two subforms with header and footer content.

When the form is printed, I want to change the background colour of the subforms, from grey to white. This will reduce toner useage.

 

I have put script into the preprint and postprint events but whilst the script seems to be executed, the colour does not change.

Is there something different about the object model that I need to take into account?

This is the script that I have on the form for each subform affected.

 

<event activity="prePrint" ref="$host" name="event__prePrint">

     <script contentType="application/x-javascript">

          this.border.fill.color.value = globalWhiteColour.value;

     </script>

</event>

<event activity="postPrint" ref="$host" name="event__postPrint">

     <script contentType="application/x-javascript">

          this.border.fill.color.value = globalHdrBackgroundColour.value;

     </script>

</event>

 

When I put debugging script in the events I could verify that the colour settings were indeed changed, just that when printed, the colour had not.

 

Any suggestions appreciated.


Viewing all articles
Browse latest Browse all 16286

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>