Skip to main content

Search

Search

How To Check If Text Overflows In Text Paragraph?

Comments

1 comment

  • Avatar
    Fernando Ramos Miracle

    Hello Sai,

     

    In order to evaluate the height of an object, you'll need to use a document level VB Script (Automation edition or higher is required) accessible from the "File>BarTender Document Options..." item under the "VB Script" tab.

     

    From there you could add a code similar to the below to the "OnNewRecord" event, so it runs for each one of your records.

     

    If Format.Objects(«object name or index»).Height Then
        Format.CancelPrinting("Data overflows text object")
    End If

     

    The Format.CancelPrinting() function will prompt a message asking you if you wish to continue or cancel the print job.

     

    Regards.

    0

Please sign in to leave a comment.