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

Sub report question

3 Answers 38 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 14 Jul 2015, 05:11 PM
I am trying to create a report that is structured like the attachment.   I have to fields Machine and Category that would be a header and then data pertaining to those 2 would be listed under.  Right now I have a sub report using a table.  I get the data from the DB and stuff into a datatable.any help is greatly appreciated. 

3 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 15 Jul 2015, 07:22 AM
Hello Mark,

It is not needed to use a sub-report when you already have a Table item. You can place the Table item directly inside a section of the main report. The Table item has its own data source which can be configured to receive the DB data via a SqlDataSource Component, or to receive the DataTable data via an ObjectDataSource Component.

Regards,
Nasko
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
Mark
Top achievements
Rank 1
answered on 15 Jul 2015, 11:23 AM
I had to scrap the tables (was told to go with just text boxes).   I am not sure what section(s) of the report the Machine and Category fields go in as well as the details for the fields below those.  This is my first report and I am uncertain of how to do the layout on the report as well as how to code the data.  Any help is greatly appreciated.
0
Accepted
Nasko
Telerik team
answered on 20 Jul 2015, 08:25 AM
Hello Mark,

It is recommended to place the Machine and Category fields inside a group header section in the report. The detail records below can be displayed using a Table item (Data Item) inside the group header section, or can be displayed directly in the report's detail section using text boxes.
For more information on the report sections please refer to the Report Structure help article. To group by the Machine/Category field, you will need to add Grouping to the report.

Regards,
Nasko
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
Tags
General Discussions
Asked by
Mark
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Mark
Top achievements
Rank 1
Share this question
or