Link to home
Start Free TrialLog in
Avatar of ajallath
ajallath

asked on

Error with Crystal Reports 2013 and Visual Studio 2012

Hello Experts,

I'm trying to run a Crystal Report on Visual Studio 2012, my code is the following:

        m_da = New SqlDataAdapter("Select * from YearBudget", g_cn)
        m_da.Fill(m_ds)
        Dim myReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
        myReport.Load("C:\Budget.rpt")
        myReport.SetDataSource(m_ds.Tables(0))
        ViewerForm.CrystalReportViewer1.ReportSource = myReport
        ViewerForm.Show()

I do not receive any error on design, the problem is when I'm running the application, I got the following error:

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\win64_x64\dotnet1\crdb_adoplus.dll' or one of its dependencies. The system cannot find the file specified.

The subfolder "....\dotnet1" does not exist on my PC, only exists on C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86. I'm afraid it is a 32/64 plataform problem, but I don't know how to fix it.

I'm running Visual Studio 2012 on a Windows 8 machine (64 bit).

Any help will be welcome.
Avatar of Mike McCracken
Mike McCracken

Are you using the version of Crystal that can be downloaded for VS2012?

mlmcc
Avatar of ajallath

ASKER

Yes, I download the version from the following link:

http://scn.sap.com/docs/DOC-35074

And I did not have any issue during the installation, even it works fine on the VS IDE, my problem is when I execute the application.

Thanks.
What did you install when installed the application?
You need to use the Crystal MSI

mlmcc
ASKER CERTIFIED SOLUTION
Avatar of ajallath
ajallath

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Because it was exactly the solution to the problem, and the solution was easy to implement