Report Schedule

笑着哭i 提交于 2019-12-08 05:44:58

问题


I need to create a report in SSRS 2008 R2, which shows a "calendar" of training sessions.

Let me give an example:

I have a session that has a start date and an end date, and has a start time and an end time. I wanted to create a table in which the columns were the days of the month, and the lines were hours, in my case, 8 AM, 9 AM ...

The objective would be something like this:

I have a table where I can get all sessions, with a start date, with the start time and the end time.

My concern relapsed on the following aspects:

  • You will need a table with Year, Month, Day?
  • What about Ace hours? Also should I have some table? Or create table directly in the Report?

I'm out of ideas to solve this problem, and would like to know some opinions and if possible do this in Reporting Services.

Regards.

FIRST EDIT:

I have this table with data sessions:

idSession  | nameSession | startDate  |        startTime      |        endTime       | 
    1      |   module 1  | 2013-01-01 | 2013-01-01 09:00:00   |  2013-01-01 09:00:00 |
    2      |   module 2  | 2013-01-01 | 2013-01-01 14:00:00   |  2013-01-01 18:00:00 |
    3      |   module 3  | 2013-01-02 | 2013-01-01 09:00:00   |  2013-01-02 09:00:00 |

回答1:


I have created a similar report, and it was a struggle. Ultimately I created a main report for the column and row headers (hours and days), with a subreport to show the detail. So I created a dataset to list each hour value (select '8:00' union select '8:30' union...etc) and used that as my row value. The column header is calculated based on a prompted date--so the first column would be the date selected, the second column is the selected date plus one day, etc. for a total of 6 columns since we typically run the report for Mon-Sat. The nested detail report selects from the db table based on the hour and date values passed from the main report.



来源:https://stackoverflow.com/questions/15548703/report-schedule

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