I'm hoping you can help me! I have a project where I need to be able to print a label with variable information to be adhered to a booklet we have in inventory. My end users will be ordering this "label" through our MarcomCentral store-front, but I want them to be able to preview the entire booklet at the time the variable label is composed, and then only send the label page to the printer.
So, attached is the collect file. I want the preview to display pages 1-21 and to send page 22 to the printer. (I renamed pages 21 and 22 to "Rep" and "RepLabel" in the collect.) Here's my OnRecordStart rule that I've landed on (I've tried many variations trying to get this to work):
onlinePreviewVal = FusionPro.Composition.JobOptions.IsOnlinePreview;
if (onlinePreviewVal=="Yes")
{
FusionPro.Composition.SetBodyPageUsage("1", true);
FusionPro.Composition.SetBodyPageUsage("2", true);
FusionPro.Composition.SetBodyPageUsage("3", true);
FusionPro.Composition.SetBodyPageUsage("4", true);
FusionPro.Composition.SetBodyPageUsage("5", true);
FusionPro.Composition.SetBodyPageUsage("6", true);
FusionPro.Composition.SetBodyPageUsage("7", true);
FusionPro.Composition.SetBodyPageUsage("8", true);
FusionPro.Composition.SetBodyPageUsage("9", true);
FusionPro.Composition.SetBodyPageUsage("10", true);
FusionPro.Composition.SetBodyPageUsage("11", true);
FusionPro.Composition.SetBodyPageUsage("12", true);
FusionPro.Composition.SetBodyPageUsage("13", true);
FusionPro.Composition.SetBodyPageUsage("14", true);
FusionPro.Composition.SetBodyPageUsage("15", true);
FusionPro.Composition.SetBodyPageUsage("16", true);
FusionPro.Composition.SetBodyPageUsage("17", true);
FusionPro.Composition.SetBodyPageUsage("18", true);
FusionPro.Composition.SetBodyPageUsage("19", true);
FusionPro.Composition.SetBodyPageUsage("20", true);
FusionPro.Composition.SetBodyPageUsage("Rep", true);
}
else
{
FusionPro.Composition.SetBodyPageUsage("RepLabel", true);
}
This still isn't resulting in what I want though. Can you help me?
FusionPro Version: VDP Producer 12.1.2 Rep Booklet with Label.zip