Crystal报表无法从连接的数据库工作. [英] Crystal report is not working from an attached database.

查看:92
本文介绍了Crystal报表无法从连接的数据库工作.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我运行了一个使用vb.net在另一个系统中开发的项目.我将数据库附加到系统中的ms sql.该项目具有一些显示水晶报表的表格.但是,当该表格加载时,它会询问服务器名称,数据库,请输入ID和密码.是否有想法在不使用此表单的情况下运行该表格?

谢谢,

Hi,

I have run a project which was developed in another system using vb.net.I attached the database to ms sql in my system.The project has some forms which shows the crystal reports.But when that form loads it asks for server name,database,log in id and password.Is there any idea to run the form without this?

Thanks,

推荐答案

使用datasourceconnection.setconnection(dbServerName,dbName,dbUsername,dbPassword)在运行时设置报表的连接
然后使用相同的参数设置setdatabaselogin
Set the connection of your report at run time using the datasourceconnection.setconnection(dbServerName, dbName, dbUsername, dbPassword)
then setdatabaselogin using same paramenters


这篇关于Crystal报表无法从连接的数据库工作.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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