Solved

programmatically position webforms.reportviewer to desired row AFTER report is generated

Posted on 2011-02-14
5
492 Views
Last Modified: 2012-08-13
I'm using SSRS 2005.  In code behind, how do I position webforms.reportviewer to one desired row AFTER report is generated.

And please don't answer "use Find" or "use Search" unless you provide a code sample because I've looked everywhere and can find no samples for accomplishing this in 2005.

Fred
0
Comment
Question by:volking
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
skrga earned 500 total points
ID: 34890826
Can this help you : http://www.c-sharpcorner.com/UploadFile/mahesh/SearchReports04252007103246AM/SearchReports.aspx

You can remove text box and put code to be executed automatic when report generates
0
 
LVL 5

Author Comment

by:volking
ID: 34891023
skrga - Nope ... no help

when I enter the code line ...
     me.reportviewer1.find("XYZ",1)
I get this error ...
     'Find' is not a member of 'Microsoft.Reporting.WebForms.ReportViewer'

Fred
0
 
LVL 5

Assisted Solution

by:skrga
skrga earned 500 total points
ID: 34891090
Hm, are you trying to do this with .net code or on report code ?

This is for report with modified url : http://msdn.microsoft.com/en-us/library/ms153977%28SQL.90%29.aspx
0
 
LVL 5

Author Comment

by:volking
ID: 34891573
.net code ... like this ...

    Private Sub RunReport(ByVal WhichReport As String)
        ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote
        ReportViewer1.ServerReport.ReportServerUrl = New Uri("http://??.??.??.??/reportserver")
        ReportViewer1.ServerReport.ReportPath = ""http://??.??.??.??/reportserver/BirthdayRoster"
        Dim paramlist As New Generic.List(Of ReportParameter)
        paramlist.Add(New ReportParameter("UserID", Profile.Operatorid, False))
        ReportViewer1.ServerReport.SetParameters(paramlist)
        ReportViewer1.ShowParameterPrompts = False
        ReportViewer1.ShowPromptAreaButton = False
        DisableUnwantedExportFormats(ReportViewer1)
        ReportViewer1.ServerReport.Refresh()
    End Sub

Not sure how (or even "IF") adding to the URL is possible????
0
 
LVL 5

Author Comment

by:volking
ID: 34891647
and ... trying this ...

ReportViewer1.ServerReport.ReportPath = ""http://??.??.??.??/reportserver/BirthdayRoster?rc:FindString=Tomberlin""

generates an error ...

An exception of type 'Microsoft.Reporting.WebForms.ReportServerException' occurred in Microsoft.ReportViewer.WebForms.dll but was not handled in user code
Additional information: The path of the item '/RsMainDevRe/BirthdayRoster?rc:FindString=Tomberlin' is not valid. The full path must be less than 260 characters long; other restrictions apply. If the report server is in native mode, the path must start with slash. (rsInvalidItemPath)

0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to use Variables  and Custom code in SSRS report and Assembly reference to use compile shared code in SSRS. Its big question for all who are working with SSRS. It is easy to create assembly and refer in SSRS report, still there are some steps…
A recent question popped up and the discussion heated up regarding updating a COMMENTS (TXT) field in a table using SSRS. http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Q_27475269.html?cid=1572#a37227028 (htt…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question