How to create a report with sections and page breaks using SSRS

给你一囗甜甜゛ 提交于 2019-11-26 21:06:55

问题


I'm trying to create a report that looks like this:

using a select from this table: (fiddler here for query and data)

CREATE TABLE StudentData
(
id int PRIMARY KEY IDENTITY,
name varchar(30),
subject varchar(30),
currentGrade varchar(2),
targetGrade varchar(2),
note1 varchar(100),
note2 varchar(100),
note3 varchar(100),
UNIQUE (id)
)

Basically I want to display each student on a new page, with their subject split up into sections, and their grades and notes in each of these subject sections.

I am trying to do this within Business Intelligence Development Studio

Any help with how I would go about that would be great, thanks.


回答1:


I can upload the images now.

  1. First you add a List Tablix to the report with the name and add a TextBox

  2. Add a Parent Group to the list in the Row Group category

  3. Choose name as the Group By Column

  4. You will have two columns, one with the group and another with the TextBox created previously

  5. Add more TextBox with the rest of the columns missing.

  6. Now we're going to set the break on each group, select on the Row Groups section the group name and right click and select Group Properties

  7. Select the Page Break page and then check the option Between each instance of a group

  8. You should have something like this now.

  9. Now let's configure the name to appear to the top of each page, select in the Row Groups section the Details Group and add a Total Before

  10. And after add some TextBox and some colors you will have something like this.

I hope this can help you.




回答2:


Add a List and set the DataSetName to your existing Dataset. In the Row Groups definition for the list, tell it to Group on id. Add a textbox for the name.

Add another List inside the existing List and set the DataSetName to your existing Dataset. In the Row Groups definition for the list, tell it to Group on subject. Add a textbox for the subject.

Add 2 Tables inside the inner List to present your inner-most tables.



来源:https://stackoverflow.com/questions/13257276/how-to-create-a-report-with-sections-and-page-breaks-using-ssrs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!