Solved

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

Posted on 2011-02-14
5
488 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
  • 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

809 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