当前位置: 代码迷 >> .NET报表 >> 水晶表格2008 报表文件名为空
  详细解决方案

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

热度:5408   发布时间:2013-02-25 00:00:00.0
水晶报表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时,原来能用的也出现这个提示
  相关解决方案