Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Could not load file or assembly

Could not load file or assembly 'file:///C:\Program Files (x86)\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.

I just installed CR 10 (v. 10.0.0.553) on a Windows 7/64bit machine and I downloaded and installed the package for building reports in VS 2010/VB.Net.

In the C:\Windows\assembly folder the CR resources have version 13.0.2000.0 listed

I created the first report and added a report viewer to a form.

I'm using the code below to try and view the report.

When it gets to the line: cr.Load(strReportPath) I get the error above.

The folder "C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1" does not exist. Instead I have the same path, but it is listed as "dotnet" not "dotnet1"

Inside the dotnet folder there is not file named crdb_adoplus.dll.

Any help is appreciated.

Greg

Dim strConnection As String = "Provider=SQLOLEDB;Data Source=;User ID={user id};Initial Catalog={db name}"

Dim Connection As New OleDbConnection(strConnection)

Dim strSQL As String = "SELECT [ItemName],[OtherNoteText],[EncounterDate] FROM [AICU].[dbo].[exp_OtherNote] where [PatientID] = 10001"

Dim DA As New OleDbDataAdapter(strSQL, Connection)

Dim DS As New DataSet

DA.Fill(DS, "AICUGetChartNotebyPatientID")

Dim cr As New ReportDocument

Dim strReportPath As String = "U:\VS2010\Clarity\Clarity\TestReport.rpt"

If Not IO.File.Exists(strReportPath) Then

MsgBox("Unable to locate report file:" & vbCrLf & strReportPath)

End If

cr.Load(strReportPath)

cr.SetDataSource(DS.Tables("AICUGetChartNotebyPatientID"))

CrystalReportViewer1.ShowRefreshButton = False

CrystalReportViewer1.ShowCloseButton = False

CrystalReportViewer1.ShowGroupTreeButton = False

CrystalReportViewer1.ReportSource = cr

cr.Refresh()

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question