首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

水晶报表2008 报表文件名为空解决思路

2013-01-25 
水晶报表2008 报表文件名为空CrystalReportSource myReport new CrystalReportSource()string reportPa

水晶报表2008 报表文件名为空


CrystalReportSource myReport = new CrystalReportSource();    
string reportPath = Server.MapPath("../../PrintView/Collar.rpt");
myReport.ReportDocument.Load(reportPath);  //这里总是提示 报表文件名为空  但是实际路径是正确的!

[解决办法]
CrystalReportSource.report.file必须有个值,好像2008需要这样,如果这个值和myReport.ReportDocument.Load(reportPath)一样,后面的可以省了,不知道为什么,刚装上2008时,原来能用的也出现这个提示

热点排行