是否可以更改 Rave 报告预览表单的外观?

发布于 2024-08-23 04:44:40 字数 150 浏览 6 评论 0原文

当用户预览报告时,我想避免让他们选择打开另一个报告或保存当前报告。 “打开”和“保存”是 Rave 预览渲染表单中默认菜单和工具栏中的项目;我想让它们不可见。

我正在使用 Delphi 2006 附带的 Rave 版本。

一如既往地感谢 -- Al C.

When users preview a report I would like to avoid giving them the option of then opening another report or saving the current report. Open and Save are items in the default menu and toolbar that appear on Rave's preview rendering form; I'd like to make them not visible.

I'm using the version of Rave that comes with Delphi 2006.

Thanks, as always -- Al C.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

很酷又爱笑 2024-08-30 04:44:40

如果您使用 Rave 系统对象,则可以通过将此属性设置为 false 来轻松禁用“保存”菜单选项:

系统属性 -> SystemOptions -> soAllowSaveFromPreview

如果您不使用 Rave 系统对象,则可以轻松添加一。然后将 Rave Project Engine 属性设置为新的 System object。您不需要更改任何代码。然后,Rave 项目在生成报告时将使用 System object 中的属性。

我相信我试图弄清楚如何禁用“文件打开”菜单,但我没有任何运气。一旦用户无法再保存报告,他们将无法打开任何 Rave 报告,除非您的应用程序正在保存报告文件。

If you are using a Rave System object then it is easy to disable the Save menu option by setting this property to false:

System Properties->SystemOptions->soAllowSaveFromPreview

If you are not using a Rave System object, it is easy to add one. Then set the Rave Project Engine property to the new System object. You shouldn't need to change any code. The Rave project will then use the properties in the System object when generating reports.

I believe I tried to figure out how to disable the File-Open menu but I didn't have any luck. Once users can no longer save reports, there won't be any Rave reports for them to open unless your application is saving report files.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文