FastReport可以在不同的线程中独立运行,但是有一些功能:
- 您TfrxDBDataSet甚至不能在不同的线程中创建,因为使用“全局列表”进行搜索,并且始终会对第一个创建的对象进行访问TfrxDBDataSet(您可以关闭对全局列表的使用,默认情况下处于活动状态);
- 如果在 表执行期间对象特性发生了一些变化(例如,Memo1.Left:= Memo1.Left +脚本中的10),那么您需要记住,在下一个操作期间,如果属性TfrxReport.EngineOptions.DestroyForms:= False 表模板已经存在修改后,将需要重新加载或使用TfrxReport.EngineOptions.DestroyForms:= True。续订期间,您不能使用线程中的交互式 表,因为续订后会删除脚本的对象,因此,在某些情况下,使用TfrxReport.EngineOptions.DestroyForms:= False并在下一个构建周期中自行续订模板是有效的。
如有必要,TfrxDBDataSet可以关闭用于搜索所需副本的全局列表。
{ DestroyForms can be switched off, if every time you renew a report from a file or from a current }FReport.EngineOptions.DestroyForms := False;FReport.EngineOptions.SilentMode := True;{ This property switches off the search through global list }FReport.EngineOptions.UseGlobalDataSetList := False; { EnabledDataSets plays local list role, you should install it before the template is loaded }FReport.EnabledDataSets.Add(FfrxDataSet);FReport.LoadFromFile(ReportName);FReport.PrepareReport;
如果您对FastReport感兴趣,欢迎加入FastReport QQ交流群:801349317
还想要更多吗可以点击阅读【FastReport 表2020最新资源盘点】,查找需要的教程资源。让人兴奋的是FastReport .NET正在 火热销售中!>>查看价格详情
标签:
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!