3 个解决方案
#1
在代码里试试加上数据库登陆的参数设置
myReportDocument.Load("***.rpt")
......
......
myReportDocument.SetDatabaseLogon(username, password, Server_Ip, database_name)
CrystalReportViewer1.ReportSource = myReportDocument
CrystalReportViewer1.DataBind()
myReportDocument.Load("***.rpt")
......
......
myReportDocument.SetDatabaseLogon(username, password, Server_Ip, database_name)
CrystalReportViewer1.ReportSource = myReportDocument
CrystalReportViewer1.DataBind()
#2
使用Load(reportfileName,
OpenReportMethod.OpenReportByTempCopy);方式打开.默认的load是按独占方式打开的报表文件,改成按副本方式打开
#3
月经?
#1
在代码里试试加上数据库登陆的参数设置
myReportDocument.Load("***.rpt")
......
......
myReportDocument.SetDatabaseLogon(username, password, Server_Ip, database_name)
CrystalReportViewer1.ReportSource = myReportDocument
CrystalReportViewer1.DataBind()
myReportDocument.Load("***.rpt")
......
......
myReportDocument.SetDatabaseLogon(username, password, Server_Ip, database_name)
CrystalReportViewer1.ReportSource = myReportDocument
CrystalReportViewer1.DataBind()
#2
使用Load(reportfileName,
OpenReportMethod.OpenReportByTempCopy);方式打开.默认的load是按独占方式打开的报表文件,改成按副本方式打开
#3
月经?