I wonder why I keep getting error message on stiReport1.Render() - Error message such as "Object reference not set to an instance of an object."
stiReport1 = New StiReport()
Dim _DocPath As String = Me.cboxReportList.SelectedValue
StiSLViewerControl1.Visibility = System.Windows.Visibility.Visible
StiSLViewerControl1.Report = Nothing
Dim a As System.Reflection.Assembly = System.Reflection.Assembly.GetExecutingAssembly()
Dim sr As New StreamReader(a.GetManifestResourceStream("FX." & _DocPath))
stiReport1.Load(sr.BaseStream)
sr.Dispose()
stiReport1.Render() ' Error here..
StiSLViewerControl1.Report = stiReport1
