Hello ! Both objects are text objects. We would like to set the X position of Object B based on the X position + Width of Object A plus an offset. In other words we want to position the start of Object B just to the right of the end of Object A, and Object A can vary in length. Both objects are getting data from a database record.
We have BT v10.1 Enterprise.
I put the following code in the OnNewRecord event of the BarTender Document Options:
txt10x = Format.Objects("Text 10").X
txt10w = Format.Objects("Text 10").Width
Format.Objects("Text 12").X = txt10x + txt10w + 0.19
The Text 12 object is a text paragraph type.
Result: The Text 12 object X position does not vary - it stays the same from record to record.
The btw and associated data file are both attached.
Any help is appreciated.
General Atomics San Diego, CA
Please sign in to leave a comment.