This is a migrated thread and some comments may be shown as answers.

Show a minimun number of rows

1 Answer 85 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 08 Oct 2014, 02:35 PM
Hi, 

I have a subreport where I need to draw 6 records in the detail section. Always 6 records, not more, not less. If there are no records, I need to draw  6 empty spaces. Or if I have 4 record, I need to draw 4 records and 2 empty spaces.

I limit the maximun number of row to six by setting SELECT TOP 6...

Is there any propperty or method in order to draw in the detail the minimun number of rows needed?

Thanks in advance. Best regards, 

1 Answer, 1 is accepted

Sort by
0
Hinata
Top achievements
Rank 1
answered on 13 Oct 2014, 07:18 AM
Hi Jon,

The report is data-driven. This means the engine will create a instances of the detail section according to the number of rows in the data source. When there are less than 6 records, you will have to add empty records programmatically, so that you always have 6 records in total.
Tags
General Discussions
Asked by
Jon
Top achievements
Rank 1
Answers by
Hinata
Top achievements
Rank 1
Share this question
or