文檔金喜正規(guī)買球>>FastReport中文文檔>>引用總值
引用總值
要引用總值,請使用報(bào)告對象的 GetTotalValue 方法:
float sales = Report.GetTotalValue("TotalSales");
點(diǎn)擊復(fù)制
總計(jì)值具有 FastReport.Variant 類型。It can be directly in any expression, because the FastReport.Variant type is automatically converted to any type.例如
float tax = Report.GetTotalValue("TotalSales") * 0.2f;
點(diǎn)擊復(fù)制
如需下載fastreport最新試用版,請點(diǎn)產(chǎn)品名跳轉(zhuǎn)產(chǎn)品下載頁>>