Hi All,
I have a requirement to have a watermark on my Form when it is printed for second time and hence.
If the user prints the form for first time he should not see any watermark.
Any ideas. Please Help.
I am working on Designer and LiveCycle ES2.
Thanks and Regards--
Chalukya.
Views
Replies
Total Likes
Hi,
You could have a hidden flag, like a checkbox object.
When the form opens, script in the docReady event of the checkbox would set its value to off/0.
Then in the postPrint event it would sets its value to on/1. This would fire after the first print (and every subsequent print).
Lastly, in the checkbox's prePrint event, script would check the value of itself (checkbox). If it is on/1 then display the image/watermark. If it is off/0 then do not display the image/watermark.
Hope that helps,
Niall
Thanks Niall,
Your solution is working gr8.
But have a problem when I print my form I get a Print Box to set my Pages/Printer and so on, here if I cancel the Print action then my form is considered to be printed.
And I get the watermark when I print it again.
Any solution for this. Please suggest.
Thanks and Regards--
Chalukya.
Views
Replies
Total Likes
Hmmm,
Not sure. The prePrint and postPrint events are a coupled pair. You are
correct, even if the user clicks cancel, the postPrint event is fired.
I can't think of a way around this, when using the postPrint event.
If I come up with anything, I will post it here. Maybe someone else will
have a better solution.
Good luck,
Niall
Views
Replies
Total Likes
Hi Chalukya, I got your message in my thread. Unfortunatly off the top of my head I'm not sure but I'll look into it as well. I'm quite new to these kinds of forms and javascripting but I'll see what I can do.
Views
Replies
Total Likes
Guys any possibilities/break throughs for the above requirement ...
Regards--
Chalukya.
Views
Replies
Total Likes
Hi Chalukya, Unfortunaly I've had no luck with this.
Regards,
SCF
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies