q8_dreamy -1 Light Poster

:sad: hi every one
I have a problem with rdlc report
how can I view it??!
I think something missing with my code.. can any one help pleeeeeeeeaaaaase :'( :'( :'(
this is my code:

Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click


Dim thisDataSet As New System.Data.DataSet()

Me.ReportViewer1.Visible = True
Me.ReportViewer1.Reset()
Me.ReportViewer1.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote

Dim ds As New Microsoft.Reporting.WebForms.ReportDataSource("B_Report.xsd")
'ds.Value =
Me.ReportViewer1.LocalReport.DataSources.Add(ds)

Me.ReportViewer1.LocalReport.ReportPath = "B_Report.rdlc"

'/\/\/\/\/\/\ Parameters /\/\/\/\/\/\/\/\/\

Dim reportParameterCollection(4) As Microsoft.Reporting.WebForms.ReportParameter
reportParameterCollection(0) = New Microsoft.Reporting.WebForms.ReportParameter()
reportParameterCollection(0).Name = "I2" 'SQL parameter
reportParameterCollection(0).Values.Add(I2.Text)
reportParameterCollection(1) = New Microsoft.Reporting.WebForms.ReportParameter()
reportParameterCollection(1).Name = "I4" 'SQL parameter
reportParameterCollection(1).Values.Add(I4a.Text + I4b.Text)
reportParameterCollection(2) = New Microsoft.Reporting.WebForms.ReportParameter()
reportParameterCollection(2).Name = "I5" 'SQL parameter
reportParameterCollection(2).Values.Add(I5a.Text + I5b.Text)
'reportParameterCollection(3).Name = "I22" 'SQL parameter
'reportParameterCollection(3).Values.Add(I22a.Text + I22b.Text)
'reportParameterCollection(4).Name = "Ba1" 'SQL parameter
'reportParameterCollection(4).Values.Add(Me.FormView2.FindControl(Ba1.text))


'/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\

Me.ReportViewer1.LocalReport.SetParameters(reportParameterCollection)
Me.ReportViewer1.LocalReport.Refresh()

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.