Conditional Printing of Template S’abonner

0

I am using a VB script to set the value of a data source and then trying to conditionally print a template based on the data source value. Is this possible? When setting the "Print When" property condition it does not print the template page. 

I've attempted to test the functionality of this property by pointing the "Print When" condition to a database field and printing a document that satisfies that condition, but it also will not print. 

3 commentaires

0
Avatar
Peter Thane
Actions pour les commentaires Permalien

In the images below I have created a label that uses VB to take away the value of one field from another and if the value is 1 prints both templates or if not only prints one.

I have made the VB routine an Event Controlled OnIdenticalCopies routine and have also named this string VBResult to make it easier to reference. 

The conditional printing I used you can see here:

 

Preview with out conditional printing

Previews with conditional printing

 

 

 

0
Avatar
Keith Crosby
Actions pour les commentaires Permalien

Thank you Pete. I'm still struggling to get this to work correctly. Below are some images of my current configuration. The topmost text object on the label is my "AssemblyType" data source to show the vbscript is doing its job. My document is configured slightly different, but I don't see how that would affect the end result. Again, thank you for your response.

 

0
Avatar
Peter Thane
Actions pour les commentaires Permalien

Not sure I have set something up similar with an End of Group template and used a based on data source condition as yours and it works correctly. I wonder if it is something to do with the data in your SerialBatchNo field that it does not like or else you could try change the condition to be based on expression (either equals or contains perhaps) and see what that does 

Vous devez vous connecter pour laisser un commentaire.