I use Stimulsoft Reports.Net but when I load Report form Assemblly ( file with exten .dll) then -> error:
Value cannot null
Parameter name: path1
code:
Dim report As StiReport
Dim compiledReportFile As String = Application.StartupPath & "\" & "SoCaiTaiKhoan.dll"
If System.IO.File.Exists(compiledReportFile) Then ' Error
report = StiReport.GetReportFromAssembly(compiledReportFile, True)
report.RegData("dsReport", DataSet2.Tables(0))
'report.CompiledReport.Dictionary.Clear()
report("TaiKhoan") = "111"
report("DoiTuong") = 0
report.Render(False)
report.Show()
Else 'No Error
report = New StiReport
report.Load("..\SoCaiTaiKhoan.mrt")
report.RegData("dsReport", DataSet2.Tables(0))
report.Compile(compiledReportFile)
report("TaiKhoan") = "111"
report("DoiTuong") = 0
report.Render()
report.Show()
End If
Help Me
Error when Load Report from Assemblly
Error when Load Report from Assemblly
Hi,
Please check that report's assemblies you tried to load have been built with the same version of the report engine. It is impossible to load report's dlls created in other version of the report engine.
Versions of the report engine and dlls in StiReport.GetReportFromAssembly() must always match.
Thank you.
Please check that report's assemblies you tried to load have been built with the same version of the report engine. It is impossible to load report's dlls created in other version of the report engine.
Versions of the report engine and dlls in StiReport.GetReportFromAssembly() must always match.
Thank you.