Hi Denver,
Thanks for the info. I definitely like the XML approach rather than pulling data directly from the database. I was able to get the button to work inside the designer preview, but I couldn't get the import data command to work in the Initialize event. I couldn't get it to work in your sample either. I get this error:
"Script failed (language is javascript; context is xfa[0].form[0].form1[0]) script=xfa.host.importData(""); Error: $host does not have a method 'importData'
Maybe the initialize event occurs before host is completely set up?
As for the button, I passed blank for the file name but it still didn't work in Adobe Reader (I have version 7.0.7). It does work in Acrobat Professional. Any ideas?
Meanwhile I've been playing with Acrobat 7.0 and it is so much easier to create editable PDFs with this tool. It doesn't give me all the missing font warnings and mangle text. I don't suppose there is a way to import from XML and link up fields like you do in Lifecycle? If not, I guess I will first create the text fields in Acrobat, open the file up in Lifecycle and link up the fields to the XML document.
Thanks for your help,
Sandy