I am trying to view my report files on CrystalReport viewer in ASP.NET programmatically by using the code blow;
Note that Reports are located on a file server.
CrystalReportSource reportsource = new CrystalReportSource();
CrystalDecisions.Web.Report report = new CrystalDecisions.Web.Report();
Guid reportid = new Guid(Request.QueryString["GUID"]);
string path = Server.MapPath("/Reports/") + dc.Reports.Where(k => k.OID == reportid).First().FileContent;
report.FileName = path;
reportsource.Report = report;
CrystalReportViewer1.ReportSource = reportsource;
It is loaded to the viewer perfectly. However, if I attempt to go to the next page or trying to set parameter via parameters panel or if it has any group tree or parameter, when I try to expand any node of the group tree, it says No valid report source is available. but if I do it via CrystaReportSource wizard there is no problem at all.
what do I miss here?
thanks for your help.
Note: I could not find any crystal report forum category to post my question, that is why I have posted here...