VB.Net - Crystal Reports - Data access
HelloI have a Huge problem,.. I have build a form, with a Crystal Reports viewer
on it, (+ included report) in
my project.. The report uses a connection to a SQL database.. Se code.
Everything works fine om my devel machine, but for some reason CR pops up
asking for a DB connection when i deploy the application. (I have included
all of the CR merge modules, + entered the licence key in regwiz.msm)
Nothing works even if i enter the correct db info.)?
Anybody have a clue on whats wrong ????
Thanx
//Carlos
My code.(Parts of it is from support.crystaldecisions.com)
-----------------------
crReportDocument = New CrystalReport1()
crTableLogonInfo = New TableLogOnInfo()
crConnectionInfo = New ConnectionInfo()
crConnectionInfo.DatabaseName = "databasename"
crConnectionInfo.ServerName = "servername"
crConnectionInfo.UserID = "userid"
crConnectionInfo.Password = "password"
crTableLogonInfo.ConnectionInfo = crConnectionInfo
For Each crTable In crReportDocument.Database.Tables
crTable.ApplyLogOnInfo(crTableLogonInfo)
Next
CrystalReportViewer1.ReportSource = crReportDocument