[500分]水晶报表打包问题,分不够开新贴再加
做一个asp.net的项目,用水晶报表9。2中文版,开发时候采用push方式实现,采用强类型化的dataset作为报表的数据源.调试阶段没有任何问题,打包之后在服务器上运行,报如下错误:"错误的登陆参数"。
代码:
Dim Cnnobj As New CnnObj()
Dim ObjComm As New SqlClient.SqlCommand()
Dim ObjConn As New SqlClient.SqlConnection()
Dim ObjDa As SqlClient.SqlDataAdapter
Dim Objds As New Dscontract()//我建的强类型化的dataset
Dim Cr1 As New turncontract()//某一个报表对象的实例
ObjConn.ConnectionString = “。。。。”
ObjConn.Open()
ObjComm.Connection = ObjConn
ObjComm.CommandType = CommandType.StoredProcedure
ObjComm.CommandText = "LIU_LOADCONTRACT"
ObjComm.Parameters.Add("@contractnum", SqlDbType.NVarChar).Value = ContractNo
ObjDa = New SqlClient.SqlDataAdapter(ObjComm)
ObjDa.Fill(Objds, "LIU_LOADCONTRACT")
Cr1.SetDataSource(Objds)
cv1.ReportSource = Cr1 //cv1为一个reportviewer的对象