WBG-guy Posted February 24, 2012 Share Posted February 24, 2012 I have a document that has 6 pages that I want to output only two. Here is how I have the pages outputting depending on the field value... 1. Page 1 with overflow page (Field value = "No") 2. Page 3 with overflow page (Field value = "Yes") 3. Page 5 and 6 (Field value = "Bleed") 4. Page 5 and 6 again (Field value = "No Bleed") This is my page names... Page 1 - Body (unused) - "nobleedpg" Page 2 - Overflow - "nobleedpg" Page 3 - Body (unused) - "bleedpg" Page 4 - Overflow - "bleedpg" Page 5 - Body (unused) - "front" Page 6 - Body (unused) - "back" I'm using "OnRecordStart" but I'm not getting the back page to output? I'm also not sure if the overflow page is setup correctly to output. Here's the rule that I setup... if (Field("bleed1") == "Yes") { FusionPro.Composition.SetBodyPageUsage("bleedpg", true); } if (Field("bleed1") == "No") { FusionPro.Composition.SetBodyPageUsage("nobleedpg", true); } if (Field("bleed1") == "Bleed") FusionPro.Composition.SetBodyPageUsage("front", true); } if (Field("bleed1") == "Bleed") FusionPro.Composition.SetBodyPageUsage("back", true); } if (Field("bleed1") == "No Bleed") FusionPro.Composition.SetBodyPageUsage("front", true); } if (Field("bleed1") == "No Bleed") FusionPro.Composition.SetBodyPageUsage("back", true); } What am I missing?? Quote Link to comment Share on other sites More sharing options...
esmith Posted February 25, 2012 Share Posted February 25, 2012 When are you not getting the back page to output? If it's only for records where the value of Field("bleed1") is equal to "Yes" or "No" could it be because your records don't have any content requiring the overflow page? You may also be running into problems by using separate IF loops for activating each page. See if it helps to replace your OnRecordStart rule with: switch (Field("bleed1")) { case "Yes": FusionPro.Composition.SetBodyPageUsage("bleedpg", true); break; case "No": FusionPro.Composition.SetBodyPageUsage("nobleedpg" , true); break; case "Bleed": case "No Bleed": default: FusionPro.Composition.SetBodyPageUsage("front", true); FusionPro.Composition.SetBodyPageUsage("back", true); } Quote Link to comment Share on other sites More sharing options...
WBG-guy Posted February 25, 2012 Author Share Posted February 25, 2012 DUDE!! That worked perfectly! Thanks for the quick reply! 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.