CrystalReportSource myReport = new CrystalReportSource();
string reportPath = Server.MapPath("../../PrintView/Collar.rpt");
myReport.ReportDocument.Load(reportPath); //这里总是提示 报表文件名为空 但是实际路径是正确的!
------解决方案--------------------------------------------------------
CrystalReportSource.report.file必须有个值,好像2008需要这样,如果这个值和myReport.ReportDocument.Load(reportPath)一样,后面的可以省了,不知道为什么,刚装上2008时,原来能用的也出现这个提示