I have the following bit of simple code, which based on tutorials should work:
Try
Dim report As CustomerStatus = New CustomerStatus
report.Load("Reports/CustomerStatus.rpt")
report.SetParameterValue("id_customer", 130)
report.SetDatabaseLogon("root", "", "localhost", "aerospace")
report.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, "c:\customer_status.pdf")
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
Regardless of whether I directly connect (SetDatabaseLogon) or use the details specified at report compilation, I get this error:
"Database Logon Failed."
I have also tried connecting to a local and production server and neither works.
I am using Crystal Reports for Visual Studio 2012 Professional.