Question : show crystal report on (database : Oracle)


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

Thank you
Francis SZE
crystal report
crystal report

Answer : show crystal report on (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"
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

End Sub
Random Solutions  
programming4us programming4us