Rob had it exactly right!
I generally leave the path out of the script and direct it where I want it
to go in the compose screen. If you want to do it without the path you will
achieve your dynamic naming this way.
FusionPro.Composition.outputFileName = "What-ever you want before the field"
+ Field("UniqueFieldValue") + "text after the field" + ".pdf";
As you can see you can create any combination of fields and text to create
your output filename. Make sure you are using a field or some kind of
combination of fields and text that has a unique value, or you are adding
something unique or you could inadvertently over-write some of earlier
records with records that show up later in the list.
Make sure you follow all of the steps Rob has listed below.
Doug Pershing
VP-Data & Production
WMSG Inc
1278 Titan Dr
Dallas, TX 75247
(214) 640-2224
e-mail [EMAIL PROTECTED]
web http://wmsginc.com
click on information and news to see the latest at WMSG Inc.
-----Original Message-----
From: Rob Domaschuk [mailto:[EMAIL PROTECTED]
Sent: Monday, April 02, 2007 3:07 PM
To: FusionPro Users Forum
Subject: [fusionpro] RE: PDF naming
> would like to know if there is a way to name an ouput file based on a
> field in a database, and it changes for each file created.
There certainly is!
1. Create a new OnNewOutputFile callback rule
2. Use this syntax (note that the \ character is "escaped"):
FusionPro.Composition.outputFileFullPathName = "C:\\My Files
Go Here\\" + Field("LastName") + ".pdf";
3. Go to FusionPro > Compose... and under the Output tab, check the "Output
to multiple files" box, set the "Number of records per file" to 1, and
uncheck the "Different number of records in first file".
HTH,
Rob
*******************************************************************
Rob Domaschuk
Training & Communications Developer,
Printable Technologies(tm), Inc.
Member; National Association of PhotoShop Professionals
"Great ability develops and reveals itself increasingly
with every new assignment."
- Baltasar Gracian (1601-1658)
*******************************************************************
--
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
--
To unsubscribe send a blank email to [EMAIL PROTECTED]
--
--
--
--
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
--