水晶报表(Crystal Report)登录问题
我的是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 该设置什么?
我怎么设置都不行。谢谢指点