October 5th, 2013, 04:45 AM
Crystal Report still show database login prompt after using .setdatabaselogon
hi im currently developing vb.net program using vs2012 and crystal report for vs service pack 6, i got issue when im try to load report when running the program it use odbc name as server name and keep showing database login prompt even after i set server name in code , the report run fine if i using report preview in ide.
this is the code i'm using to load the crystal report
Dim report As New ReportDocument()
report.Load(Application.StartupPath & "\Report\BACK OFFICE\lprinventory.rpt")
report.SetDatabaseLogon("sa", "424378", "LAPTOP", "COZY")
CrystalReportViewer1.ReportSource = report
Sorry for bad english
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.