Answered
I really need your help to figure out how to cancel document printing if some textfields are'n filled correctly. So far I've made a script in 'will print' event that checks all fields and if neccessary displays the warning messagebox. But the problem is that the user can still print the document. So... does anybody knows some tricks how to stop printing after the user clicks OK on the MsgBox?
This is an emergency!!
At this point the print job can only be stopped with the system print dialogs.
One solution is to make your own print button on the document that uses a script to check for valid field values before calling the "doc.print()" function.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script