Hi..
I added property to my report called _total_cost
I added property to my report called _total_cost
public partial class Total_Tons : Telerik.Reporting.Report
{
public decimal _Total_Cost { set; get; }
I have code that calculates the the total cost in the ctor of the Report
this.DataSource = _lstInvoices
var ct = _lstInvoices.Sum(c => c.cost);
_Total_Cost =
Convert.ToDecimal(ct);
How can I use this value in the TEXTBOX ?
When I set the text value to.....
Value = "= (Sum(Fields.cost)/_Total_Cost)*100"
I get an error
"_TOTAL_COST is NOT DEFINED IN THE CURRENT CONTEXT'
thanks in advance