SQL Parameter for Report

Stimulsoft Reports.NET discussion
Post Reply
Stephan1
Posts: 122
Joined: Fri Aug 31, 2007 7:22 am
Location: Germany

SQL Parameter for Report

Post 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:
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

SQL Parameter for Report

Post by Edward »

Please ensure that the name of the parameter is "@OrdernunberParameter".

Thank you.
Post Reply