First timer problem
I'm trying to get my first Fast Report to work in my asp.net app, but I'm not having much luck.
I've created the report into the Reports folder, file name is Invoice.frx.
I'm using the following code to render the report:
FastReport.Report Rpt = new FastReport.Report();
Rpt.Load(Page.Server.MapPath("../Reports/Invoice.frx"));
Rpt.SetParameterValue("pintFinalInvoiceFlag", 0);
Rpt.SetParameterValue("pstrGlobalMessage", "Merry Christmas");
Rpt.SetParameterValue("pstrInvoicedYYYYMM", "201411");
Rpt.Prepare();
Rpt.ShowPrepared();
However, when the code hits the "Rpt.Prepare()" line, the app crashes with the error message:
(Data1): Error CS0131: The left-hand side of an assignment must be a variable, property or indexer
What am I doing wrong?
Thanks for any and all help.
Dave
I've created the report into the Reports folder, file name is Invoice.frx.
I'm using the following code to render the report:
FastReport.Report Rpt = new FastReport.Report();
Rpt.Load(Page.Server.MapPath("../Reports/Invoice.frx"));
Rpt.SetParameterValue("pintFinalInvoiceFlag", 0);
Rpt.SetParameterValue("pstrGlobalMessage", "Merry Christmas");
Rpt.SetParameterValue("pstrInvoicedYYYYMM", "201411");
Rpt.Prepare();
Rpt.ShowPrepared();
However, when the code hits the "Rpt.Prepare()" line, the app crashes with the error message:
(Data1): Error CS0131: The left-hand side of an assignment must be a variable, property or indexer
What am I doing wrong?
Thanks for any and all help.
Dave