标签:list value key document 释放 span data 打印 source
ReportDocument rpt = new ReportDocument (); //先加载rpt rpt.Load(strPath); rpt.SetDataSource(List<model>或者DataTableName); rpt.SetParmiter("key",Value); rpt.Close(); rpt.Dispose(); 注意:批量打印每循环一次就释放一次,不然会把资源顶爆的,报‘加载报表失败’;rpt属性设置成‘内容’
111
标签:list value key document 释放 span data 打印 source
原文地址:https://www.cnblogs.com/wangjp-1233/p/11959371.html