Page 1 of 1

SQL Parameter for Report

Posted: Tue Sep 04, 2007 4:58 am
by Stephan1
Hi,

i got a Problem using Parameter for my Report.

The code i use is the following:

Dim stireport1 As New Stimulsoft.Report.StiReport
stireport1.Load(path) ' Where path is my filename to the report
stireport1.Compile()
stireport1.CompiledReport.DataSources.Item("Orders").Parameters.Item("@OrdernunberParameter").ParameterValue = 150062

The Report is loaded but when i try to set the parameter i receive an error

"Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt."

NullReferenceException was unhandled

The Parameter exists in the Datasource "ORDERS"..

How can i fix this ? i need to give a parameter to load different Orders.

Thx a lot



Got it allready.

:biggrin:

SQL Parameter for Report

Posted: Tue Sep 04, 2007 5:22 am
by Edward
Please ensure that the name of the parameter is "@OrdernunberParameter".

Thank you.