So I did not include the login property on the report in my code. Now, on my part I was using the odbc because as what I have noticed crystal report works fine with this and since we are working with odbc. This works for me and I'm using Visual Studio 2008 for this one since VS2010 doesn't have crystal engine for the reference.įirst, make sure you have imported these two: Imports rpt: Unable to connect: incorrect log on parameters.)
Error in File C:\DOCUME~1\Username\LOCALS~1\Temp\Report. This somehow made it work and there might be some other solution for that.:) (For ref:- Adding = True gave me this error. Imports instead of Imports (to avoid ambiguity). = "server name"ĬrystalReportViewer1.ReportSource = RptDocumentĬreated a System DNS and had to add to reference and a class file (with functions same as that in connectooracle.vb class file but with different name), also set up a connection in global.asax to refer to that class connection and using RptDocument.SetParameterValue("param5", param5.text)ĭim myLogin As įor Each myTable In RptDocument.SetParameterValue("param4", param4.text) RptDocument.SetParameterValue("param3", param3.text) RptDocument.SetParameterValue("param2", ddlparam2.SelectedValue) RptDocument.SetParameterValue("param1", Session("param1")) RptDocument.Load(Server.MapPath("rpt\Report.rpt"))
I wrote the code below: Dim RptDocument As New ReportDocument