将水晶报告文件放在某个网站中是否可行,例如:
http://localhost/DocumentRPT/ProductPerTenorByProductID.rpt
然后,我用
执行ReportDocument.load(SERVERPATH)
或者,有什么共同发布方法的建议吗?
非常感谢你的回答。
答案 0 :(得分:0)
报告查看器ReportPath的属性可以从后面的代码中分配
ReportViewertrans.LocalReport.ReportPath = HttpContext.Current.Server.MapPath("Your path to rpt");
或
report.Load(Server.MapPath("Report1.rpt"))