sschardan Posted December 4, 2009 Share Posted December 4, 2009 I have a puzzle. Occasionally, I have jobs that I utilize the repeat record count function in an "onRecordStart" rule, and I then print divider sheets between the records by utilizing the "onRecordEnd" rule listed below: if (FusionPro.Composition.repeatRecordNumber == Field("number of records")) { FusionPro.Composition.SetBodyPageUsage("Divider", true) FusionPro.Composition.SetBodyPageUsage("Divider2", true) } This has always worked, until now. The repeat record function is working, but the divider sheets won't print. This is the first time I've used this since upgrading to OS 10.5 several months ago. I have uninstalled FP Desktop 6.0P1f and reinstalled, even tried 6.1, but no luck. Is the OS the issue, or am I missing something else here? Scott Intel Mac OS 10.5 FP Desktop 6.0P1f FP Desktop 6. Link to comment Share on other sites More sharing options...
esmith Posted December 4, 2009 Share Posted December 4, 2009 What value are you assigning to the repeatRecordNumber function prior to the IF statement? If it doesn't equal anything, I don't see how the IF statement can compare it to your field. EDIT: I just re-read your OP and realized I erred in my response above. Your logic is that the repeatRecordNumber would be equal to the last iteration of the OnRecordStart assignment when it triggers the addition of the divider sheets. Nice idea, actually. If someone more intelligent than me responds with a fix, I might have to use this logic on some of my jobs as well. Link to comment Share on other sites More sharing options...
Dan Korn Posted December 7, 2009 Share Posted December 7, 2009 The FusionPro.Composition.SetBodyPageUsage method is only valid in OnRecordStart. Move your logic there and it should work. Link to comment Share on other sites More sharing options...
sschardan Posted December 8, 2009 Author Share Posted December 8, 2009 Dan, Thank you, that worked. But I swear, the way I originally had it set-up worked several times under OS 10.4. I still have the old vdx files to prove it. Strange. Scott Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.