or
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
private
void
LoadReports(List<Report> reports)
{
foreach
( Report report
in
reports ) {
if
( report !=
null
) {
SubReport sr =
new
SubReport();
sr.ReportSource = report;
this
.detail.Items.Add(sr);
}
}
}