Answered
Hi folks,
could you tell me, why it is not possible to call a funktion in click or preprint event of print button?
I've a function called NullFieldValue(obj). This function traverse each item of the given object (collection) 'obj' and reset the rawValue of each object item to null. It works recursively.
This function works elsewhere fine, but in click or preprint of a print button?
Thanks for your help in adv!
The PrePrint event has some timing restrictions so there are definately some things that won't work. Although I wouldn't think modifying the rawData would be a problems. And this should not be a problem at all for the click event. It seems like there is something else going on, rawData modification by itself shouldn't cause a failure.
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script