Not sure I’m entirely getting the question here. Usually, you wouldn’t care about the width of the container as the column width is what really makes the difference. And also there, I’d just make all widths “wide enough” and right align the content, so you wouldn’t have to worry about widths at all.
That said, there are a couple of things that came into my mind while reading your question:
- you might consider using automatic width adjustments for the columns, see this blog post.
- an alternative might be to use a formula for the container width and base the actual width on the required width (calculated using the TextWidth function). A sample for Arial, 12 pt would be
- if you’d basically just concatenate the sums from different containers you could use GetVar/SetVar to store the values from the containers and use the result in a simple text field
- you could also use native aggregation if your data source allows for it
Maybe you could post a screen shot of what you currently have and what the layout should look like as a result?