Leider komme ich an einer bestimmten Stelle nicht weiter.
Folgendes Problem:
Mit einer Schaltfläche soll eine Legende zu einem Formular ausgedruckt werden. Die Schaltfläche liegt momentan auf der Musterseite. Leider druckt dieser Schalter momentan nur die erste Seite der Legende.
Das auszufüllende Formular wird im pre-print ausgeblendet, die Legende eingeblendet.
Im post-print wird alles wieder umgedreht eingestellt:
Code: Alles auswählen
<event name="event__click" activity="click">
<script contentType="application/x-javascript">xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
</script>
</event>
<event activity="prePrint" ref="$host" name="event__prePrint">
<script contentType="application/x-javascript">
Formular1.Inhalt_FRM_5089.ABB_BBB_AB.presence = "hidden";
Formular1.Inhalt_FRM_5089.Legende_BBB_und_ABB.presence = "visible";
</script>
</event>
<event activity="postPrint" ref="$host" name="event__postPrint">
<script contentType="application/x-javascript">
Formular1.Inhalt_FRM_5089.ABB_BBB_AB.presence = "visible";
Formular1.Inhalt_FRM_5089.Legende_BBB_und_ABB.presence = "hidden";
</script>
</event>