DateTime.Now.AddDays((int)DayOfWeek.Sunday – (int)DateTime.Now.DayOfWeek).ToShortDateString() — Sunday
DateTime.Now.AddDays((int)DayOfWeek.Saturday – (int)DateTime.Now.DayOfWeek).ToShortDateString() — Saturday
Posted by ken zheng on May 5, 2008
DateTime.Now.AddDays((int)DayOfWeek.Sunday – (int)DateTime.Now.DayOfWeek).ToShortDateString() — Sunday
DateTime.Now.AddDays((int)DayOfWeek.Saturday – (int)DateTime.Now.DayOfWeek).ToShortDateString() — Saturday
Posted in .Net | Leave a Comment »
Posted by ken zheng on May 5, 2008
You need to get
http://reportserver/reportserver/foldername/reportname for passing parameters
The last command in the url is &rs:Command=Render
You can add some other commands as follows:
&rc:Parameters=Collapsed
&rc:Parameters=true
&rc:Parameters=false
&rc:toolbar=false
&rc:format=PDF
&rs:Format=EXCEL&rc:OmitFormulas=true
rs:ClearSession=true
&rc:StyleSheet=MyCustomStyle
ReportServer Parameters: If you add ?/FolderName/ReportName after the http://servername/reportserver you can run the report.
The same applies if you want to list the reports, then just type ?/FolderName after the http://servername/reportserver.
This is commonly used when the user only has permissions at the folder level, not the root level.
So your URl with Parameters should look like:
https://reportserver/reportserver/foldername/reportname&rs:Command=Render&StartDate=05/05/2008&EndDate=12/05/2008&Comments=True
Posted in SQL | Tagged: Reporting Service, SQL Reporting | Leave a Comment »