rsager Posted September 7, 2012 Share Posted September 7, 2012 Hello, I am trying to create a rule that will return a cycle number (1-7) so our envelope machine can read the number. I have a 3 page letter with 1200 records and I end up with 3600 printed pages. I need the the page numbering to return back to 1 for page 8,15,22,29 and so on. Can a simple rule be created to do this. Thanks Bob Sager Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted September 7, 2012 Share Posted September 7, 2012 Yes, in FusionPro 8.1, you can use the OnPageNumber rule to modify the value set by the $pagenum variable. Quote Link to comment Share on other sites More sharing options...
rsager Posted September 7, 2012 Author Share Posted September 7, 2012 Thanks Dan, I have the OnPageNumber Rule but I'm not sure what the change would be. // Note: Always returns 1 for rule validation in the Rule Editor return FusionPro.Composition.currentPageNumber; Quote Link to comment Share on other sites More sharing options...
Dan Korn Posted September 7, 2012 Share Posted September 7, 2012 Thanks Dan, I have the OnPageNumber Rule but I'm not sure what the change would be. // Note: Always returns 1 for rule validation in the Rule Editor return FusionPro.Composition.currentPageNumber; Probably this: return ((FusionPro.Composition.currentPageNumber - 1) % 7) + 1; The percent sign "%" is the modulus (remainder) operator in JavaScript. 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.