Avatar

Level 2

Hi Niall,

Thanks for the Paul's link.  From Paul's example I modified these in my LC Designer 8.2 & put these statements in docReady event.

var myDoc = event.target;

var sFile = "/C/ARP/Sample_Plot_Report";

myDoc.importDataObject ({cName: sFile});

myDoc.exportDataObject ({cName: sFile, nLauch:2});

It would prompt the user to select what file (Dialog box appear) even though I forced it with a path to load my file.  It seem like no matter what path I change on my var sFile it doesn't work - look like it would default back to my current path that my file is on - why is that??  I don't want to prompt the user for the file.  What I'm hoping for is that I can open this attach file & append this plot AcroForm file to my report which is  XFA form PDF then renumber all the pages.  Can this be done this way?

I was searching around & read up something about privileged & non privileged context & got all confused is my problem w/ the forceing the path related to this topic?

Thanks so much for any advice & guidance on my problems

Trang