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

Multi-Column Report - Across the Page and Then Down .

2 Answers 141 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Iron
Andrew asked on 21 Mar 2016, 04:32 AM

Hello

 

I am hoping someone can shed some light on my issue of printing labels.  I have follwed the guide  - How to: Create Multi-Column Report - Across the Page and Then Down .  The output is repeating by the number of records returned. ie. 8 records, data is repeated 8 times

For test purposes we have an SQL recordset that returnes 8 records (for the test).

As part of the recordset we also return an incremental record number (as RowNumber) e.g

RowNumber     Data

3      Some Data

4      Some Data

5      Some data

etc

 

We have added a list item into the details section , the Row group grouping expression is set to = Fields.RowNumber / 3.

The Static grouping expression is set to = Fields.RowNumber % 3.

 

We then get the 8 records repeated 8 times.  It works as 3 across then down, just 8 times.

(incidentally we start the incremental count from 3 to end up with blank labels at the end of the report rather than within it)

 

What am I missing?

Hope that makes sense

Any assistance would be appreciated.

 

Thanks Andrew

2 Answers, 1 is accepted

Sort by
0
Katia
Telerik team
answered on 23 Mar 2016, 08:31 AM
Hi Andrew,

Based on the information provided, it looks like you set the DataSource property for both the Report and the List item.
Please note, that List item is a data item. This means that placed inside Detail section it will be rendered additionally for each row from the parent's (report) data source.

Depending on your scenario, you can either remove the report's DataSource or reuse the parent DataSource inside the List item. This can be done with ReportItem.DataObject property - Binding a Data item to Data/Binding to data from the parent data item.


Regards,
Katia
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Andrew
Top achievements
Rank 1
Iron
answered on 28 Mar 2016, 11:47 PM

Thank you.

The issue was as you described, the data source source was set at both levels.

This fixed our problem

 

Thanks Andrew

Tags
General Discussions
Asked by
Andrew
Top achievements
Rank 1
Iron
Answers by
Katia
Telerik team
Andrew
Top achievements
Rank 1
Iron
Share this question
or