Skip to main content

Search

Search

Print IF DataSource Equals Other DataSource

Comments

3 comments

  • Avatar
    Shotaro Ito

     

    When you have any condition, you can cancel print with error message.

    Ex:

    1. Create Named Data souce "VAR1" which have value (database field etc) 

    2. Create a text  with VB Script source (Event control script)

    OnNewRecord (or OnPostPrompt) event

    If Format.NamedSubStrings("VAR1").Value = "CAT" Then
    Call Format.CancelPrinting("CAT prohibited","") ' No continue button - cancel only
    'Format.CancelPrinting("CAT prohibited") ' With continue button
    End If

     

    1
  • Avatar
    Christian Vargas

    I will try this tomorrow and report back. Thanks.

    0
  • Avatar
    Christian Vargas

    This worked! Exactly as posted :-)

    0

Please sign in to leave a comment.