No, Ryan was basically correct. The problem was that the file was being opened again for every record in OnRecordStart. This is actually a fairly common mistake.
To clarify, the solution was actually to move the *call* to Larry's OpenXDF function from OnRecordStart to OnJobStart. Where a function is defined is immaterial, as long as it can be referenced from the calling rule, which is why putting the function definition in the JavaScript Globals makes sense. Although even if you defined it in OnJobStart, it would still have global scope. But defining a function doesn't actually invoke any of the code inside it; it's only when you call the function that anything actually happens. So, it's fine to define a function in the JavaScript Globals, or in OnJobStart, or even within the rule that's calling it, but you don't want to call the rule in OnRecordStart unless you really want to execute its code (and in this case, open the external data file) on every record. Dan +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- Calling all FP Web Users! Do you have a question or lots of knowledge to share about FusionPro Web? If so, join our Printable Web to Print Users' Forum today! Send email to [EMAIL PROTECTED] to find out how! +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- -- Users of FusionPro Desktop have unlimited free email support. Contact Printable Support at [EMAIL PROTECTED] -- View FusionPro Knowledge Base, FusionPro Samples at www.printable.com/vdp/desktop.htm -- You are currently subscribed to fusionpro as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] -- -- Note: All e-mail sent to or from this address will be received or otherwise recorded by the e-mail recipients of this forum. It is subject to archival, monitoring or review by, and/or disclosure to someone other than the recipient. Our privacy policy is posted on www.printplanet.com --
