Move Other Object When Size Of Object Next To It Has More Then 2 Characters
Hi, im using data from a database in which i have a product with 20 liters and 200 kgs. The number 20 and 200 are from database as well as liters and kgs. I encounter a layout problem when data is 20 causing too much space for liters /kgs next to it.
Is it possible to automatically move liters and kgs to the left against 20 when this value has only 2 characters? Too much spacing wouldnt look that neat on my label.
E.g.
20 Liters
200 Liters
should be
20 Liters
200 Liters
2 Kgs
2000 Kgs
-
Permanently deleted user
★ BarTender Hero ★
Yes, definitely. You need to investigate the feature of multiple data sources (in versions 9.4 and earlier, these were called "sub strings" and were accessible from the mode called "Advanced" on the Data Sources tab). Without knowing what version you are using it is hard to give specific instructions.
Assuming you are using 10.0 or later:
- Create a text object (don't worry about what the data is yet, just put it on the label). By default it says "Sample Text"
- Right-click the object and select "Properties" from the context menu.
- Select the data source (says "Sample Text") from the navigator on the left.
- On the Data Source tab, change the Type and set it to the database field. At this point the object is set to "20" or whatever the value is.
- Now, in the navigator on the left select the "new" icon (leftmost) to create a new data source.
- Keep the default type of "Embedded Data" and press Finish.
- Change the data of this data source to say " kg" (or whatever the unit is - note the space in front).
Now the text object contains both the database field, and text after it.
Instructions for versions prior to 10.0 are different, but fairly similar - on the Data Sources tab, click "Advanced >>" and you'll see the interface for making multiple substrings. You'll want both a "Database Field" and a "Screen Data" (old name for Embedded Data) in the same object.
0 -
Yes it worked! Thanks a lot!
0
Please sign in to leave a comment.
Comments
2 comments