G
goo
Guest
11.7 I am trying to setup a CrystalReportViewer using info: Progress KB - How to add the .NET Crystal Reports Viewer into a form? I have created a procedure, and produced a CR that runs from withing CrystalReport. It uses ODBC. When running the code, it gives me the input screen for parameters, but when I try to run it, it gives me a dialog-box with "Could not open the connection .... .rpt I believe it has to do with the connection, but I am not sure. The dialog-box comes after crystalReportViewer1:RefreshReport(). Before that I have done this: DSN = "DRIVER=" + ODBC + ";HOST=" + Servernavn + ";PORT=" + Port + ";DB=" + Databasenavn + ";UID=" + Bruker + ";PWD=" + Passord. tblLogonInfo = NEW CrystalDecisions.Shared.TableLogOnInfo(). DO i = 0 TO crwReport
atabase:Tables:Count - 1: crRptTable = crwReport
atabase:Tables. tblLogonInfo = crRptTable:LogOnInfo. tblLogonInfo:ConnectionInfo:ServerName = DSN. tblLogonInfo:ConnectionInfo:UserID = Bruker. tblLogonInfo:ConnectionInfo
assword = Passord. crRptTable:ApplyLogOnInfo(tblLogonInfo). END. The password is blank (it works from CrystalReport.. and from ODBC setup (x32). DSN looks like this: DRIVER=baaaf;HOST=10.nnn.nnn.123;PORT=2017;DB=rapport;UID=administrator;PWS= How can I debug this? //Geir Otto
Continue reading...
Continue reading...