Quantcast
Viewing all articles
Browse latest Browse all 2823

Crystal reports 2011 with Visual Studio 2010

I have Visual studio 2010 and Crystal designer 2011 installed on my Windows 7 64 bit pc. I have a project that was done with VS2010 and Crystal 2008 that is working fine. Now I need to convert this in to VS2010 and Crystal 2011. When I open the project, I get the following messages in my code regarding Crystal

 

Dim _oRpt As CrystalDecisions.CrystalReports.Engine.ReportDocument

Dim oCRDb As CrystalDecisions.CrystalReports.Engine.Database = _oRpt.Database()

Dim oCRTables As CrystalDecisions.CrystalReports.Engine.Tables = oCRDb.Tables()

Dim oCRTable As CrystalDecisions.CrystalReports.Engine.Table

Dim oCRTableLogonInfo As CrystalDecisions.Shared.TableLogOnInfo

Dim oCRConnectionInfo As New CrystalDecisions.Shared.ConnectionInfo

 

 

oCRConnectionInfo.ServerName = c_serverName

oCRConnectionInfo.UserID = c_userID

oCRConnectionInfo.Password = c_passWord

oCRConnectionInfo.IntegratedSecurity = c_integratedSecurity

 

 

oCRConnectionInfo.DatabaseName = c_dbName

SetDBLogonForReport(oCRConnectionInfo, _oRpt)

SetDBLogonForSubreports(oCRConnectionInfo, _oRpt)

_oRpt.DataSourceConnections(0).SetConnection(c_serverName, c_dbName, c_userID, c_passWord)

 

 

Errors :

IntegratedSecurity is not a member of CrystalDecisions.Shared.ConnectionInfo

DataSourceConnections is not a member of CrystalDecisions.CrystalReports.Engine.ReportDocument

 

 

Looks like some members were removed from Crystal 2011. Not sure how to fix this.


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>