I've been spinning my wheels, and they are almost about to fall off, so hopefully someone has some advice for me. I've debugged this, tried every example on the web, and can't seem to get what I need. My situation is quite simple:
I have a report, using OLE connection, one string parameter, and it's used in the select expert. I'm using VS 2015 Update 2 w/ the latest Crystal 2013 service pack for .NET. This is the WinForms version.
PROBLEM: I load the ReportDocument, call SetParameterValue, and all functions as I desire after I assign the ReportDocument to the CrystalReportsViewer's ReportSource property. When using the viewer's default refresh functionality, the current values that were applied to the ReportDocument are not displayed in the parameter window.
METHOD:
ReportDocument reportDoc = new ReportDocument();
reportDoc.Load(@"C:\Users\test\Desktop\test.rpt");
reportDoc.SetParameterValue("TestStringParam", "teststring");
crystalReportViewer1.ReportSource = reportDoc;
Again, this loads the report properly, passes the parameter properly, and all is good. The parameter even shows in the parameter panel. Clicking refresh shows the parameter, but not populated with the current value, which in my case is "teststring".
Thanks for any help.