C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Resources » Code Snippets » SQL »

Go Back to the Parent Report in SSRS


Posted Date: 09 Oct 2009    Resource Type: Code Snippets    Category: SQL
Author: Jolly TrivediMember Level: Silver    
Rating: 1 out of 5Points: 5



Writting the following expression in the JumpToURL property of the Report in SSRS:

="http://localhost/ProjectName/Page.aspx?Month=" & Fields!MOnthName.Value & "&Year=" & Fields!YearName.Value


will take user to the Report when clicked. It passes the two Query parameters "MonthName" and "Year" to the Page.aspx page.

Now in Page.aspx page use the following code :


Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
sQueryParameterMonth = Request.QueryString("Month").ToString()
sQueryParameterYear = Request.QueryString("Year").ToString()
PrintReport(sQueryParameterMonth, sQueryParameterYear
End Sub

Private Sub PrintReport(ByVal QueryParameterMonth As String, ByVal QueryParameterYear As String)

Dim pInfo As ReportParameterInfoCollection
Dim paramList As New Generic.List(Of ReportParameter)

rptViewer.ProcessingMode = ProcessingMode.Remote
rptViewer.ServerReport.ReportServerUrl = "Specify connectionsetting for Report URL"
rptViewer.ServerReport.ReportPath = "Specify Report Path"
paramList.Add(New ReportParameter("MOnthName", QueryParameterMonth, False))
paramList.Add(New ReportParameter("Year", QueryParameterYear, False))
rptViewer.ServerReport.SetParameters(paramList)

rptViewer.ServerReport.Refresh()

End Sub

it will take you back to the Parent Report in SSRS



Responses

Author: Miss Meetu Choudhary    11 Oct 2009Member Level: Diamond   Points : 1
No Formatting, and Many Gramatical Issues. so points Deducted

++
Thanks and Regads
Meetu Choudhary
Site Coordinator.



Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Sign In to add tags.
SSRS  .  Parent Report  .  Jump To URL  .  Back to Parent Report  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: To find keywords in SQLServer Functions & stored Procedure
Previous Resource: Date Format in SQL SERVER 2005
Return to Discussion Resource Index
Post New Resource
Category: SQL


Post resources and earn money!
 
More Resources



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use