if isprint then
begin
//打印模板
if isPreview then
//打印前预览
SelModalF.frReport.ShowReport
else
begin
// 直接打印
SelModalF.frReport.LoadFromFile(TempStr);//报表设计保存在执行文件目录中
SelModalF.frReport.PrepareReport;
SelModalF.frReport.printpreparedreportDlg ;
end;
end else
//编辑模板
SelModalF.frReport.DesignReport;