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.CrystalRe ports.Engi ne.ReportD ocument
myReport.Load("C:\Budget.r pt")
myReport.SetDataSource(m_d s.Tables(0 ))
ViewerForm.CrystalReportVi ewer1.Repo rtSource = 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.d ll' 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.
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.CrystalRe
myReport.Load("C:\Budget.r
myReport.SetDataSource(m_d
ViewerForm.CrystalReportVi
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
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.
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.
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
You need to use the Crystal MSI
mlmcc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Because it was exactly the solution to the problem, and the solution was easy to implement
mlmcc