Question : show crystal report on vb.net (database : Oracle)

Hi,

How time I run crystal report on vb.net, it need to reenter password for oracle database server.
How could I solve it without password prompt?

Thank you
Francis SZE
Attachments:
 
crystal report
crystal report
 

Answer : show crystal report on vb.net (database : Oracle)

On the page load or button click or whatever you want to run the report on you need to add the following: configureCRYSTALREPORT()

Private Sub configureCRYSTALREPORT()
      Dim myConnectionInfo As New ConnectionInfo()

      myConnectionInfo.DatabaseName = "DatabserName"
      myConnectionInfo.UserID = "UID"
      myConnectionInfo.Password = "PWD"
      setDBLOGONforREPORT(myConnectionInfo)
End Sub

Private Sub setDBLOGONforREPORT(ByVal myconnectioninfo As ConnectionInfo)
      Dim mytableloginfos As New TableLogOnInfos()
      mytableloginfos = CrystalReportViewer1.LogOnInfo
      For Each myTableLogOnInfo As TableLogOnInfo In mytableloginfos
            myTableLogOnInfo.ConnectionInfo = myconnectioninfo
      Next

End Sub
Random Solutions  
 
programming4us programming4us