Want to call a crystal report of version 8.5 through VB.NET.
In this the data is passed to report through XML file. On running this, the report asks for Database name, Server name, Userid, Pwd.
Subreports are also used into that report.
I want it to directly display the report without asking for this info .
I tried for code from google, as follows
Database.Tables(0).ApplyLogOnInfo(myLogin)
_rdoc.Database.Tables(0).LogOnInfo.ConnectionInfo. DatabaseName = "DB"
_rdoc.Database.Tables(0).LogOnInfo.ConnectionInfo. ServerName = "DBServer"
_rdoc.Database.Tables(0).LogOnInfo.ConnectionInfo. UserID = "cUserID"
_rdoc.Database.Tables(0).LogOnInfo.ConnectionInfo. Password = "cPassword"
Also tried code as
_rdoc.SetDatabaseLogon("sa", "", "(local)", "ANVR")
But still asking for details while displaying
Is any option to Verify Database through coding ?
Can anyone help me about ??
Thanks