Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Report Viewer

Posted on 2014-01-16
4
Medium Priority
?
582 Views
Last Modified: 2014-01-18
I am us vs2010 and I am trying to build a report viewer.  The initial generation of the page at load when opening the report viewer works fine.  Brings up the data needed correctly in every way.  I am trying to get the report to change based on a parameter change selection in a dropdown box on the page.  I get a message saying 'A data source instance has not been supplied for the data source 'DataSet1'.  

Below is the code.  I have tried to embed the data source, but obviously it is not working.

DataSet - ManualDataSet.xsd
Report  - ManDataReport.rdlc
ReportViewer - ManualDataReport.aspx

Can anyone help?

Thanks

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            DropDownList5.SelectedValue = "NC0117"
        End If

    End Sub


    Protected Sub DropDownList5_SelectedIndexChanged(sender As Object, e As System.EventArgs) Handles DropDownList5.SelectedIndexChanged
        Dim DieNumberParam(0) As Microsoft.Reporting.WebForms.ReportParameter
        DieNumberParam(0) = New Microsoft.Reporting.WebForms.ReportParameter("DieNumberParameter", DropDownList5.SelectedValue.ToString)

        ReportViewer1.Reset()
        ReportViewer1.LocalReport.ReportEmbeddedResource = "ManuaDataSet.xsd/ManDataReport.rdlc"
        ReportViewer1.LocalReport.ReportPath = "ManDataReport.rdlc"

        ReportViewer1.LocalReport.SetParameters(DieNumberParam)


    End Sub
0
Comment
Question by:rckrch
[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
4 Comments
 
LVL 41

Accepted Solution

by:
Kyle Abrahams earned 2000 total points
ID: 39788890
Please see this link with:
http://forums.asp.net/t/1960004.aspx?Dynamic+Report+Viewer+A+data+source+instance+has+not+been+supplied+for+the+data+source

Essentially it's looking for the datasource on rebind which you're not providing (I believe the reset clears it).
0
 

Author Closing Comment

by:rckrch
ID: 39791244
Thanks very much.  All I did was delete the reset statement and it works fine now.  Such a simple thing.  

Thanks very much.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

610 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