I have a number of Crystal Reports running from .Net 4 webpages, when I view the reports on screen using the CrystalReportsViewer and change the parameters it's all fine but when I try to either Export or Print the report it reverts back to using the parameter I last used when saving the actual report.
I have tried loads of things, not saving data in with the report, that just refreshes the page, setting refresh DB connections in the report and to be honest to many other things but I just can't get the report to use the parameter I select from the web page.
Any ideas on how to make it work? I have attached the report code from the aspx page and also the code from the .cs file that is attached just incase this gives anyone any clues.
Any help would be really appreciated.
public partial class VMF1 : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
protected void CrystalReportViewer1_Load(object sender, EventArgs e)
ReportDocument report = new ReportDocument();
report.SetDatabaseLogon("sa", "password", @"192.168.100.56", "T1");
CrystalReportViewer1.ReportSource = report;
<CR:CrystalReportSource ID="VMF" runat="server">
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"