|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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): Code:
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); } FusionPro Version: VDP Producer 12.1.2 |
#2
|
|||
|
|||
![]()
Afritz,
You need to make all your pages unused and then change your OnRecordStart rule to this: //access the "isOnlinePreview" property and the "isPreview" property Graphic onlinePreviewVal = FusionPro.Composition.JobOptions.IsOnlinePreview; if (onlinePreviewVal=="Yes") { for (i=1; i<=20; i++) { FusionPro.Composition.SetBodyPageUsage(i, true); } FusionPro.Composition.SetBodyPageUsage("Rep", true); } else { FusionPro.Composition.SetBodyPageUsage("RepLabel", true); } Jon
__________________
FusionPro VDP 12.1.3 | Windows 10 Pro | Acrobat DC |
#3
|
|||
|
|||
![]()
Thanks, Jon! And sorry for the delayed response, I didn't get notified that you responded.
Unfortunately, that still only resulted in the label page being previewed within the Marcom Admin tool. See revised collect attached. Did I miss something else? Amber Booklet with Label_Preview and Print.zip |
#4
|
||||
|
||||
![]()
I think the problem is on the first line of your rule:
Code:
onlinePreviewVal = FusionPro.Composition.JobOptions.IsOnlinePreview; Code:
onlinePreviewVal = FusionPro.Composition.JobOptions.isOnlinePreview; Or better yet, remove that line completely and make the next line this: Code:
if (IsOnlinePreview()) Calling the built-in global function IsOnlinePreview() instead is better, as it insulates you from having to know the internals of the CFG file and its settings and values.
__________________
Dan Korn FusionPro Developer / JavaScript Guru / Forum Moderator PTI Marketing Technologies | Printable | MarcomCentral I am a not a Support engineer, and this forum is not a substitute for Support. My participation on this forum is primarily as a fellow user (and a forum moderator). I am happy to provide help and answers to questions when I can; however, there is no guarantee that I, or anyone else on this forum, will be able to answer all questions or fix any problems. If I ask for files to clarify an issue, I might not be able to look at them personally. I am not able to answer private messages, emails, or phone calls unless they go through proper Support channels. Please direct any sales or pricing questions to your salesperson or inquiries@marcom.com. Complex template-building questions, as well as all installation and font questions or problems, should be directed to FusionProSupport@marcom.com. Paid consulting work may be required to fulfill your template-building needs. This is a publicly viewable forum. Please DO NOT post fonts, or other proprietary content, to this forum. Also, please DO NOT post any "live" data with real names, addresses, or any other personal, private, or confidential data. Please include the specific versions of FusionPro, Acrobat, and your operating system in any problem reports or help requests. I recommend putting this information in your forum signature. Please also check your composition log (.msg) file for relevant error or warning messages. Please post questions specific to the MarcomCentral Enterprise and Web-to-Print applications in the MarcomCentral forum. Click here to request access. Or contact your Business Relationship Manager (BRM/CPM) for assistance. Please direct any questions specific to EFI's Digital StoreFront (DSF) to EFI support. How To Ask Questions The Smart Way The correct spellings are JavaScript, FusionPro, and MarcomCentral (each with two capital letters and no spaces). Acceptable abbreviations are JS, FP, and MC (or MCC). There is no "S" at the end of "Expression" or "Printable"! The name of the product is FusionPro, not "Fusion". "Java" is not is not the same as JavaScript. Check out the JavaScript Guide and JavaScript Reference! FusionPro 8.0 and newer use JavaScript 1.7. Older versions use JavaScript 1.5. return "KbwbTdsjqu!spdlt\"".replace(/./g,function(w){return String.fromCharCode(w.charCodeAt()-1)}); ![]() |
#5
|
|||
|
|||
![]()
Awesome!! That worked! Thank you so much! This is going to make a lot of people very happy...
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|