2 Replies - 4689 Views - Last Post: 10 April 2012 - 12:43 AM Rate Topic: -----

#1 tendaimare   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 182
  • Joined: 04-November 10

File not found exception. vb.net Access Reports

Posted 05 April 2012 - 06:06 AM

I am trying to produce reports with Crystal reports and Access in Vb.Net and this is the code I ve tried. But I am getting an error "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." A filenotfoundException.

 Imports CrystalDecisions.CrystalReports.Engine'>> My imports Statement

  Dim myReport As CrystalReport3 = New CrystalReport3'>> Just below Puyblic Class Form1

 Dim iSql As String = "select * from myQuery where ID =14"
        Dim Conn As OleDbConnection = New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Recordsets\Recordset\Recordset\bin\Debug\MyDB.accdb")
        Dim dt As DataTable = New DataTable
        Dim da As New OleDbDataAdapter(iSql, Conn)
        da.Fill(dt)
        myReport.SetDataSource(dt)'>> Where the erro shows up when I put Breakpoints
        CrystalReportViewer2.ReportSource = myReport
        CrystalReportViewer2.Refresh()



Attached image(s)

  • Attached Image


Is This A Good Question/Topic? 0
  • +

Replies To: File not found exception. vb.net Access Reports

#2 CharlieMay   User is offline

  • This space intentionally left blank
  • member icon

Reputation: 1730
  • View blog
  • Posts: 5,709
  • Joined: 25-September 09

Re: File not found exception. vb.net Access Reports

Posted 05 April 2012 - 08:53 AM

Check out this link on the subject
Was This Post Helpful? 0
  • +
  • -

#3 tendaimare   User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 182
  • Joined: 04-November 10

Re: File not found exception. vb.net Access Reports

Posted 10 April 2012 - 12:43 AM

thanks man, that was the answer I needed.

Thanks
Thanks
Thanks
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1