如何使用 Lotus 脚本预览表单
我想预览当前的表单,并且在预览中可以打印它,如何在 Lotus script 中执行此操作?
I want to preview the current form and in the preview I can print it, how can I do this in lotus script?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您想在视图中预览当前选定的文档吗?
您可以使用视图操作来运行如下内容:
请参阅 此处 了解 NotesUIWorkspace.DialogBox 参数说明。
或者您可以简单地使用 @DialogBox 公式:
You want to preview currently selected document in a view?
You could use view action that would run something like this:
See here for NotesUIWorkspace.DialogBox param explanation.
Or you can simply use @DialogBox formula:
笔记不太适合打印。根据您的要求,您最好编写代码来创建 Word 文档,然后可以打印该文档。有很多实现此目的的示例,以下是帮助您入门的示例之一:http://searchdomino.techtarget.com/tip/A-flexible-data-export-agent-for-Lotus-Notes
希望这会有所帮助。
Notes is not really great for printing. Depending on your requirements you might be better off writing code to create a word document, which can then be printed. There are plenty of examples out there for achieving this and here is one of them to get you started: http://searchdomino.techtarget.com/tip/A-flexible-data-export-agent-for-Lotus-Notes
Hope this helps.
使用要打印的表单的只读版本创建子表单。
要预览表单 - 让子表单显示在对话框中。将对话框设置为继承主文档中的值。
在子窗体上显示一个打印按钮,用于打印只读文档。打印时隐藏打印按钮。
Create a subform with a read-only version of the form you want to print.
To preview the form - have the subform display in a Dialog box. Have dialog box set to inherit the values from main document.
On the subform display a print button that will print the read-only document. Have the print button hide when printed.
您是否尝试过右键单击该文档?您也许可以通过右键单击来打印它。我会先尝试简单的事情,看看这是否满足用户的需求。
如果您正在谈论处理文档的工作流程,并且该过程已完成,并且您想要预览最终文档,那么您应该能够通过 java 端的 UI 文档类或 LotusScript 中的 NotesUI 类来完成此操作。一旦你掌握了 UIDocument 的句柄,你就可以做几件事。
如果该对象位于你的 UI 设计中,我会尝试将文档设置为只读并在预览窗格中显示它。然后,您可以查询用户是否想要打印文档并使用 UIDocument.print 选项。
Have you tried to do a right click on the document? You might be able to print it by doing a right click. I would try the simple things first and see if this meets the user needs.
If you are talking about a workflow where you are handling documents and the process is complete and you want to preview the final document you should be able to do this via the UI Document Classes in either the java side or the NotesUI classes in LotusScript. Once you have a handle to the UIDocument you can do several things..
I would try setting the document to readonly and show it in the Preview pane if that object is in your UI design. You could then query the user if they want to print the document or not and use the UIDocument.print option.