Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Centering Variable Content

edited March 2014 in General
I have a subreport detail band with photographs in a blob field.


As the report is constructed now, the photos "stack."
I'd like to have the report arrange the photos horizontally up to a
threshold number of images. It would also be preferable that they autosize.

Any suggestions would be greatly appreciated.

John

Thus-

Currently- images are stacked. Each photo = one record in child table.

Item Description1 (Header)

Photo1 centered (subreport detail records)
Photo2 centered
Photo3 centered
Photo4 centered

Desired- images arrange horizontally.

Item Description1

Photo1 Photo2 Photo3 Photo4 (centered autospaced, preferably autosized)

Item Description2

Photo1 Photo2 (centered autospaced, preferably autosized)

Item Description3

Photo1 Photo2 Photo3 (centered autospaced, preferably autosized)

Comments

  • edited March 2014
    Hi John,

    Depending on the complexity of your report, you may be able to get the
    effect you need by using LeftToRight columns. Note however that left to
    right traversal does not support dynamic height detail bands.

    Set the number of columns using the Report.Columns property and
    traversal direction using the DetailBand.ColumnTraversal property.

    If LeftToRight columns will not work in your case, you will need to
    manually create and load each image for each detail band at runtime.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2014
    Thanks much.

    The images load left to right...working on the centering issue.

    John

This discussion has been closed.