error - Stimulsoft report with asp.net
Posted: Tue Jul 29, 2008 9:31 am
I am trying to pass a parameter with one page in asp.net, but i am having some problems.
When I write a number in a text box and click to show the report, i see this message error:
"Object reference not set to an instance of an object."
The butto have this code:
Dim report As Stimulsoft.Report.StiReport = New Stimulsoft.Report.StiReport()
Try
report.Load("C:\report.mrt")
Catch ex As Exception
MsgBox("Load Error Report (Destination)")
End Try
report.Compile()
report.CompiledReport.DataSources.Item("employee").Parameters.Item("@id").ParameterValue = txtid.Text
report.Render()
StiWebViewer1.Report = report
StiWebViewer1.Visible = True
and in the datasource "employee" in the report - stimulsoft.net is:
select * from dbo.AC_employee where identifier = @id
I make only that, i need to make more things and how i resolve this problems?
Thanks,
Felipe Chimenti
When I write a number in a text box and click to show the report, i see this message error:
"Object reference not set to an instance of an object."
The butto have this code:
Dim report As Stimulsoft.Report.StiReport = New Stimulsoft.Report.StiReport()
Try
report.Load("C:\report.mrt")
Catch ex As Exception
MsgBox("Load Error Report (Destination)")
End Try
report.Compile()
report.CompiledReport.DataSources.Item("employee").Parameters.Item("@id").ParameterValue = txtid.Text
report.Render()
StiWebViewer1.Report = report
StiWebViewer1.Visible = True
and in the datasource "employee" in the report - stimulsoft.net is:
select * from dbo.AC_employee where identifier = @id
I make only that, i need to make more things and how i resolve this problems?
Thanks,
Felipe Chimenti