Hi - I have a form that I want to populate from a database. My problem is that the database may not have valid data. The form contains validation logic in various javascripts that respond to mouse events and validate events. Is there any way I can fire those events, or run the javascript code using IAC (Inter-Application Communication) in C# or VB? This way, I don't have to re-write the validation logic in C#. Thank you.
You'll have to setup the form to provide you with this info. For example, make the validation scripts availible as functions in the document, then run them from the JSO object in the IAC before populating the fields. Or you could save validation state info in the form that's accessible to the JSO after the data has been loaded.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script