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

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

2011-12-22 
水晶报表2008 报表文件名为空C# codeCrystalReportSource myReport new CrystalReportSource()string r

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

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


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

热点排行