水晶报表(Crystal Report)登录问题

NewSun99 2003-12-12 10:55:14
我的是WinForm的。海波的已经看过。
我的数据库是 Oracle。
TableLogOnInfo tliCurrent;
ReportDocument rptCommon = new ReportDocument();
for(int i = 0;i < rptCommon.Database.Tables.Count;i ++)
{
tliCurrent = rptCommon.Database.Tables[i].LogOnInfo;
tliCurrent.ConnectionInfo.ServerName = "PC02";
tliCurrent.ConnectionInfo.DatabaseName = "oradb";
tliCurrent.ConnectionInfo.UserID = "NFS";
tliCurrent.ConnectionInfo.Password = "NFS";
rptCommon.Database.Tables[i].ApplyLogOnInfo(tliCurrent);
}
对于Oracle数据库ServerName 和DatabaseName 该设置什么?
我怎么设置都不行。谢谢指点
...全文
42 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
dotnba 2003-12-12
  • 打赏
  • 举报
回复
ServerName 填写Oracle服务名,DataBaseName不设置
myclife 2003-12-12
  • 打赏
  • 举报
回复
不会,关注。

我都是直接使用rpt类创建实例,然后用对实例操作,直接给一个数据源就OK了。

110,561

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧