Skip to main content

Search

Search

How to print a different template based on the length of a data source

Comments

2 comments

  • Avatar
    Peter Thane

    You could use the VB Len command to get the length of the field. If you include this command in a Named field (set via the top ringed option below) you can then reference this in the Print When.... settings in either the Page Setup for that template or via the Properties of template accessed via the bottom ringed option.

    0
  • Avatar
    Louis Turner

    I kept trying to use the Len command but couldnt get it quite right, after seeing what you had done using a NamedDataSource did help me though!

    I ended up with a NamedDataSource called Length, which found the length of my data source and then printed a template based on the value of Length.

    Think I was trying to make it more complicated than it needed to be.

    Thanks for the help!

    0

Please sign in to leave a comment.