May 2, 200619 yr I'm hoping that this is the right subforum for this, if not I apologize. We have a simple script designed for saving to a PDF. Essentially, it takes the form, saves it to a PDF. We just use the "Save Records as PDF" script step to accomplish it. Unfortunately, it forces us to use the same name for the file every time. Is there any way to use a variable or field name as the name of the exported file? Right now, we have something like: filewin:/C:/Documents and Settings/user/Desktop/NEPSpdfs/nepsrecord.pdf There HAS to be a way to do this....
May 2, 200619 yr FileMaker 8 owners can use the new script variables feature to create dynamic paths for PDFs or any script step that uses the specify path dialog. I have pasted the download URL of an example from my web site demonstrating this technique. Macintosh download: http://www.filemakerpros.com/SAVEDYN.sit Windows download: http://www.filemakerpros.com/SAVEDYN.zip Edited May 2, 200619 yr by Guest
May 2, 200619 yr Try this post out: http://fmforums.com/forum/showtopic.php?tid/125249/post/125249/#125249
May 2, 200619 yr Hi Guse: Use the Set Variable script step. Name: $MyVariable Value: MyPDFname (field or calculated value) Repitions: 1 Use the Save Records as PDF script step. Specify output file :$MyVariable Specify options:current record The above sample will create individual pdf's of each record in your database with a unique name supplied from the MyPDFname field. Of course you may want a specific path field as well. Cheers Edited May 2, 200619 yr by Guest
May 2, 200619 yr Author That was perfect, all, thanks a ton. I had to add in another variable from John Mark Osborne's example, but it worked great. Thanks again.
Create an account or sign in to comment