jnewtonchameleon-cs.com Posted March 4, 2011 Posted March 4, 2011 I need to output multiple pdf files (1 per record) using a variable field to name each output file. ie. variable field "CustomerID = 2233, 2311, 5547" File output names = 2233.pdf, 2311.pdf, 5547.pdf Is there a rule to make this work. Thanks,
Dan Korn Posted March 7, 2011 Posted March 7, 2011 On the Output tab of the Composition Settings dialog, check the "Output to multiple files" box and set the "Number of records per file" count to 1. (Also UNcheck the "Different number of records in first file" box.) Then, from the Rules dialog, click "New", then click "Callback" and select "OnNewOutputFile" and click "Next." Paste this code into the Rule Editor for the OnNewOutputFile callback: FusionPro.Composition.outputFileName = Field("CustomerID")+".pdf";
jnewtonchameleon-cs.com Posted March 7, 2011 Author Posted March 7, 2011 Thanks Dan, that works perfectly.
umakadar Posted August 31, 2011 Posted August 31, 2011 Can this be acheived using the fusionpro.exe command line? fusionpro.exe <instance file> <format (the .dif) file> <config file> <output file> where <output file> is variable based on the rule.
Dan Korn Posted August 31, 2011 Posted August 31, 2011 Can this be acheived using the fusionpro.exe command line? fusionpro.exe <instance file> <format (the .dif) file> <config file> <output file> where <output file> is variable based on the rule. Please see my answer, and post all follow-ups, here: http://forums.pti.com/showthread.php?p=8582#post8582
Recommended Posts
Archived
This topic is now archived and is closed to further replies.