无法连接:错误的登录参数 [英] Unable to connect: incorrect log on parameters

查看:73
本文介绍了无法连接:错误的登录参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在水晶报告中遇到了错误
无法连接:错误的登录参数
我正在尝试通过xml编写数据集,但我在xml编写中获得了成功,但在水晶报表文件中看不到.
那会出现错误无法连接:错误地登录参数".

I got the error in crystal report
Unable to connect: incorrect log on parameters
i am trying to write the dataset through xml and than i got success in writing in xml but i can''t see in the crystal report file.
That gives the error Unable to Connect : incorrect log on parameters

推荐答案

我相信您已经使用密码设置了数据集/数据库.由于某些原因,当Crystal Report必须与数据集/数据库连接时,还必须提供数据库的密码才能进行连接.

I believe that you have set up your dataset / database with password. For some reasons when crystal report have to connect with the dataset / database you also have to supply the password for your database in order for it to connect..

Dim rpt As New prreport2() 'prreport2 is the crystal report file
dim rec as Adodb.Recordset
rec = gSQL("select * from table1") ' this would be the query to connect
rpt.SetDataSource(rec)
rpt.SetDatabaseLogon("", "cpgc2012") 'this is to set the password on runtime



那是我在VB中的代码,我不确定如何在XML中执行它.但这就是我的想法.

希望这会有所帮助!



That was my code in VB i''m not sure how to do it in XML.. but that was the idea that i have..

hope this helps!


这篇关于无法连接:错误的登录参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆