C# rpt 批量打印写法
ReportDocument rpt = new ReportDocument (); //先加载rpt rpt.Load(strPath); rpt.SetDataSource(List<model>或者DataTableName); rpt.SetParmiter("key",Value); rpt.Close(); rpt.Dispose(); 注意:批量打印每循环一次就释放一次,不然会把资源顶爆的,报‘加载报表失败’;rpt属性设置成‘内容’
111
ReportDocument rpt = new ReportDocument (); //先加载rpt rpt.Load(strPath); rpt.SetDataSource(List<model>或者DataTableName); rpt.SetParmiter("key",Value); rpt.Close(); rpt.Dispose(); 注意:批量打印每循环一次就释放一次,不然会把资源顶爆的,报‘加载报表失败’;rpt属性设置成‘内容’
111