I am using LC Designer and trying to edit in pdf form to add warning message while someone use print option
And I can-not figure out how to add description when someone does that.
is it something related to 'xfa.host.messageBox("Blah Blah")'
Thanks in advance
Solved! Go to Solution.
Views
Replies
Total Likes
All you have done is rearrange the statements in the Click event of the button .....I am referring to an event called prePrint. This event is called before the print is done ...this is where your message shoudl go. Then on the click event you can have your normal print command. Here is a sample
paul
Views
Replies
Total Likes
Yes that is the format of a message box to the user ...what event are you placing this warning on?
Paul
Views
Replies
Total Likes
I am just placing warning when someone tries to print to remind them they have to do something.
So for print button the command line goes something like this
form1.#subform[0].PrintButton1::click - (JavaScript, client)
xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
xfa.host.messageBox("This is my message!")
----------------------------
And that only works for 'print button' of LC Designer and not of ctrl+p or file/print
Views
Replies
Total Likes
You will need to put the message on the prePrint event not on the click event......that is why it is only firing when the click the Print button.
Paul
Views
Replies
Total Likes
hmm.................I even tried doing that way
form1.#subform[0].PrintButton1::click - (JavaScript, client)
xfa.host.messageBox("This is my message!")
xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);
I assume that is what you mean but it still does not work for all print options
Let me know if you meant something different
Thanks
Views
Replies
Total Likes
All you have done is rearrange the statements in the Click event of the button .....I am referring to an event called prePrint. This event is called before the print is done ...this is where your message shoudl go. Then on the click event you can have your normal print command. Here is a sample
paul
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies