Controlling Foreground Colors Follow

0
Avatar
Legacy Poster

I've been asked to create a label with output that will be different for each intended customer.  I could define  a label with all the fields required and , in the definition, set the foreground color on each field to white, or none.  I know I can use a "Select Case" statement and have a separate case for each customer. I should then be able to "uncloak" those fields each customer requires.  How do I programatically control the foreground color of a data field on a label?

 

 

2 comments

0
Avatar
Domingo Rodriguez
Moderator
Comment actions Permalink

Yes, you can control the foreground colour of e.g. a text object in BarTender. You can do this via ActiveX Automation and Visual Basic Script. Please open BarTender's Help, press the F1 key to open BarTender's Help and browse to "Automating BarTender > Automation with ActiveX > Reference > DesignObject object".

 

Also, please take a look at the following White Paper:

http://www.bartenderbarcodesoftware.com/label-software/whitepapers/Dynamically-Changing-Objects-At-Print-Time-Using-VB-Script.pdf

0
Avatar
Legacy Poster
Comment actions Permalink

Sounds like you would be better off creating a document with multiple templates and using the new template picker.

Please sign in to leave a comment.