[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: How to debug ConnectionInfo CrystalReportViewer

  • Thread starter Thread starter goo
  • Start date Start date
Status
Not open for further replies.
G

goo

Guest
If I do this: I will get the folllowing error: Kan ikke åpne forbindelsen (Can't open the connection) METHOD PUBLIC VOID ApplyLoginInfo( ): def var i as int no-undo. /* Create an ODBC DSN */ DSN = "DRIVER=" + ODBC + ";HOST=" + Servernavn + ";PORT=" + Port + ";DB=" + Databasenavn + ";UID=" + Bruker /*+ ";PWD=" + Passord*/. Info = NEW CrystalDecisions.Shared.TableLogOnInfo(). DO i = 0 TO crwReport:Database:Tables:Count - 1: crRptTable = crwReport:Database:Tables. Info = crRptTable:LogOnInfo. Info:ConnectionInfo:AllowCustomConnection = true. Info:ConnectionInfo:ServerName = DSN. Info:ConnectionInfo:DatabaseName = Databasenavn. Info:ConnectionInfo:UserID = Bruker. Info:ConnectionInfo:Password = Passord. crRptTable:ApplyLogOnInfo(Info). crRptTable:Location = crRptTable:Location. END. MESSAGE 'Test:' crRptTable:TestConnectivity() VIEW-AS ALERT-BOX. /* crwReport:SetDatabaseLogon(Bruker, '', ServerNavn, DatabaseNavn, true).*/ CATCH eAny AS Progress.Lang.Error : MESSAGE eAny:GetMessage(1) VIEW-AS ALERT-BOX. END CATCH. END METHOD.

Continue reading...
 
Status
Not open for further replies.
Back
Top