原因是使用了模版保存了文件,事件不会被保存到模版里可以使用脚本的方式,但脚本有不安全.
这就解释了我之前的一个报表没用模版还能用这个事件, 今天在别的地方使用这个事件发现死活修改不了label值了,接这看看之前的使用也不能用了. 还纳闷问题在哪.
ello Jakub,
This is expected behavior: when an instance of the XtraReport is serialized (the report definition file is saved), it doesn't include information about assigned event handlers. In other words, the code behind of the report isn't saved. To achieve your goal, I suggest that you use Scripts, which can be serialized along with the report layout.
https://supportcenter.devexpress.com/ticket/details/t194226/xtrareports-beforeprint-don-t-work-when-run-loadlayout#
技术交流qq群:143280841
分类:
Devexpress
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架
2021-02-24 Ftp上传中文文档,html href下载中文文档无法下载问题