Changing Object Properties (Backcolor,forecolor,fontsize,font)
Is there a way, besides runing the app via Activex, to modify properties.
An example:
we have a stripe on our labels that can be one of 16 colors. Rather than making 16 tempates or 16 layers (or objects that are visible or not) I was hoping to make a change in code to change the color.
I am surprised there is not a datalink to attributes for each element on a template. (like Crystal reports).
I know I could make 16 bitmaps/images and simply change the bitmap for each color. But was trying to do something more dynamic.
Also on this stripe we can have dynamic text. So text color is important to change. on a light blue bar we could use black. But on a black square we would need to use white forecolor for a font.
any help would be appreciated.
Where I am at now is to create bitmaps in .Net on the fly and set the data properties to the temp bitmaps for different elements. But to be honest this defeats the purpose of having a template in the first place.
mike
-
Hi Jacob,
Please take a look at this other document (updated on 2020), which covers colour topics on a variety of ways, especially with VBscript from page 8 onwards.
https://www.seagullscientific.com/media/2359/bartender-color-coding.pdf
Thanks
-
Yes you can do this via VB script in a document level script. See the following white paper: http://www.seagullscientific.com/label-software/whitepapers/dynamically-changing-objects-at-print-time-using-vb-script.pdf
0 -
Invalid URL.
What's the point of have a knowledge base if none of the URL's are maintained?
0 -
Hello Jacob,
Thank you for your query.
Our Knowledge Base articles are constantly reviewed, modified, and updated with new information; thus, some legacy articles are retired or completely modified, as they no longer provide accurate information regarding our product's features.
As a result, some of the links posted here on the BarTender Community Forums may be currently inaccessible. There are some post & comment curating processes currently in place, and we are continuously working towards improving legacy posts made in the Community.
Here is a link to the document my colleague Ian referenced a few years ago:
Please be aware this document is intended for BarTender Legacy versions, is severely outdated, and its proposed actions may not work for newer BarTender versions.
Let us know if there is anything else we can help you with.0
Please sign in to leave a comment.
Comments
4 comments