Could not load file or assembly 'file:///C:\Program Files\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.
แบบนี้อ่ะคับ
โค้ดที่ใช้ก็ตามนี้เลยคับ
Code (VB.NET)
dbconn.OpenCon()
Dim strsql As String = "Select * from T_Category where Cate_code ='A1'"
da = New SqlDataAdapter(strsql, dbconn.conn)
Dim ds As New DataSet
da.Fill(ds, "report")
dbconn.closeCon()
MsgBox(ds.Tables(0).Rows.Count())
crpt.SetDataSource(ds.Tables(0))
CrystalReportViewer1.ReportSource = crpt
CrystalReportViewer1.Refresh()
End Sub
แต่ไฟล์ Report มีการจัดรูปแบบรอไว้แล้วนะคับ
Tag : .NET, Ms SQL Server 2008, Crystal Report, VB.NET, VS 2010 (.NET 4.x), Windows