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

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.