jnewtonchameleon-cs.com Posted March 4, 2011 Share 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, Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted March 7, 2011 Share 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"; Quote Link to comment Share on other sites More sharing options...
jnewtonchameleon-cs.com Posted March 7, 2011 Author Share Posted March 7, 2011 Thanks Dan, that works perfectly. Quote Link to comment Share on other sites More sharing options...
umakadar Posted August 31, 2011 Share 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. Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted August 31, 2011 Share 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.