# Re: 我用crystalReport5.0,请你试试看?

Posted by nothing on September 18, 1999 at 09:34:31:

In Reply to: 请问我要如何将ADO的recordset设到crystalReport7.0呢? posted by sandy on September 17, 1999 at 15:56:33:

: 我用crystalReport5.0

With CrystalReport1
.Formulas(0) = "CompanyName=""" & CompanyName & """" '传参数
.SQLQuery = pSQLVariableString
.Connect = "DSN = AccountODBC;UID = XX;PWD =XXXXXX;DATABase=account;" 'crystal report 5.0 用ODBC
'.Connect = "uid=XX;pwd=XXXXXX;driver={SQL Server};server=QSTDB;DATABase=account;" 'crystal report 5.0 不用ODBC
.ReportFileName = App.Path & "\AcBank.rpt"
.Action = 1
End With

我之前在 Crystal report 的driver 选 SQL SERVER 但在封装到别的PC上时会出现 PDSSQL.DLL 找不到的错误,一直无解,所以改用 ODBC 了.

Follow Ups: