Crystal Report文件路径

时间:2014-01-15 09:52:38

标签: asp.net crystal-reports

将水晶报告文件放在某个网站中是否可行,例如:

http://localhost/DocumentRPT/ProductPerTenorByProductID.rpt

然后,我用

执行
  

ReportDocument.load(SERVERPATH)

或者,有什么共同发布方法的建议吗?

非常感谢你的回答。

1 个答案:

答案 0 :(得分:0)

报告查看器ReportPath的属性可以从后面的代码中分配

  ReportViewertrans.LocalReport.ReportPath = HttpContext.Current.Server.MapPath("Your path to rpt");

report.Load(Server.MapPath("Report1.rpt"))