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

Unexpected ColumnTraversal behavior

edited February 2002 in General
Hi,
I have a label report with 4 columns. The detail band have it's column
traversal property set to ctLeftToRight. This works ok until I set it's
BandsPerRecord to something else than 1. If I set this value to 5 I expect
each record to print 5 times from left to right, but this is not the case.
Instead it prints from top to bottom for each record change and then from
left to right.

E.g. dataset with records A, B, C, and D.

Expected:

A A A A
A B B B
B B C C
C C C D
D D D D
..
Instead:

A B C D
A B C D
A B C D
A B C D
A B C D
..

Is this the expected behavior?


Morten

Comments

  • edited February 2002
    BandsPerRecord is not supported for ctLeftToRight option of columnar
    layouts. Since you know the number of columns, you may be able to use a
    JITPipeline to return the value from the correct record whenever the
    RecordIndex is a multiple that number.

    liRecordIndex := JITPipeline.RecordIndex div FNumberOfColumns;

    --
    Tom Ollar
    Digital Metaphors Corporation
This discussion has been closed.