templtanalyzer.registerdataset(dataset1, ‘table);
templtanalyzer.registerparam(now, ‘date’);
templtanalyzer.registerparam(totalqu, ‘totalquantity’);
templtanalyzer.registerparam(totalplan, ‘totalplan’);
templtanalyzer.registerparam(totalper, ‘totalpercent’);
2生成报表
templtanalyzer.generatereport;
end;