WebReport1.Report dont have SetParameterValue
Programmers manual on fast-report.com says I can pass my parameters to report with this line of code:
WebReport1.Report.SetParameterValue("MyParam", 10);
But I get error:
Here is my full code:
Much appreciated
WebReport1.Report.SetParameterValue("MyParam", 10);
But I get error:
"Fastreport.Reprt does not contain a definition for SetParameterValue"
Here is my full code:
WebReport1.ReportFile = this.Server.MapPath("~/App_Data/ReportName.frx");
WebReport1.Report.SetParameterValue("MyParam", 10); //I have error on this line
WebReport1.Prepare();
WebReport1.ReportDone = true;
Much appreciated
Comments
1. Right click on References folder and add fastreport.dll from .Net tab.
2. Add "using FastReport.Data;" in up of your code.
3. Write WebReport1.Report.SetParameterValue("subject", "hello world"); into WebReport1_StartReport event instead of page_load
______________________
Our excellent online ccie training programs will lead you to success in the ccnp exams We also offer latest ccnp dumps and www.principiacollege.edu with 100% success University of New Haven good luck.