Hide barcode with empty text

ameame
edited 1:57PM in FastReport VCL
How can I simply hide a barcode, that has no text? Currently without text it will say "invalid Barcode" and reset to a default text.
Is there an option HideIfNoData like in .Net?

Comments

  • LurkingKiwiLurkingKiwi Wellington, New Zealand
    edited 1:57PM
    ame wrote: »
    How can I simply hide a barcode, that has no text? Currently without text it will say "invalid Barcode" and reset to a default text.
    Is there an option HideIfNoData like in .Net?
    In an OnBeforePrint or OnAfterData handler you can set Visible to false; I think this needs the Pro version.
  • ameame
    edited 1:57PM
    In an OnBeforePrint or OnAfterData handler you can set Visible to false; I think this needs the Pro version.
    Yes, scripting is an option, but I was hoping for a simpler solution. An empty data field is a common case that should not require custom scripting.

Leave a Comment