Lotus notes Lotusscript-NotesUIDocument.Print

Lotus notes Lotusscript-NotesUIDocument.Print,lotus-notes,lotus-domino,lotusscript,lotus,Lotus Notes,Lotus Domino,Lotusscript,Lotus,我想将我的notes文档打印为pdf,因此我使用了 uidoc.Print(1,0,0,False,"Microsoft Print to PDF") 但我不希望出现此对话框 我希望它以编程方式另存为例如“C:\test\PrintToPDF.pdf”,而不要求用户键入文件名并选择文件夹或路径据我所知,没有选项。提示输入目标文件名是驱动程序的一部分,而不是Notes的一部分,并且NotesUIDocument.Print()方法无法将目标文件名传递给驱动程序。不会有,因为标准打印驱动程序不要

我想将我的notes文档打印为pdf,因此我使用了

uidoc.Print(1,0,0,False,"Microsoft Print to PDF")
但我不希望出现此对话框


我希望它以编程方式另存为例如“C:\test\PrintToPDF.pdf”,而不要求用户键入文件名并选择文件夹或路径

据我所知,没有选项。提示输入目标文件名是驱动程序的一部分,而不是Notes的一部分,并且NotesUIDocument.Print()方法无法将目标文件名传递给驱动程序。不会有,因为标准打印驱动程序不要求文件名。

在IBM的支持站点上找到了这个答案,可以解决您的问题:

您应该执行以下操作:
添加notes.ini参数: BrowserRenderPrintNotes=1

复制并粘贴上面URL中的内容,因为IBM已经开始将所有Notes和Domino支持链接都销往HCL

LO87560:使用带有参数的NOTESUIDOCUMENT类的LOTUSSCRIPT打印方法,将显示“文件打印”对话框

询问IBM支持代理工具 APAR状态

Closed as fixed if next.
错误描述

In the Domino designer help, for the Print method of the
LotusScript class NotesUIDocument, it is specified :
"Prints the current document:
If one or more parameters are specified, automatically prints
the document.
If no parameters are specified, or if the first parameter is
omitted, displays the File Print dialog box.
When the agent is executed with "Call uidoc.Print(1)" or
"Call.uidoc.Print(1, 0, 0, False)", the print dialog box is
displayed.
According to the documentation, it shouldn't.
The issue only occurs for SMTP mail ( eg. from iNotes),
standard note mail doesn't have the problem.
Environment
Notes 853 and 901
Windows 64 bit
局部修复

Add the notes.ini parameter
BrowserRenderPrintNotes=1

This solves the issue with the print box dialog. however mail
does not print images correctly - images are printed as
attachment.
我需要忽略“保存打印输出文件”而不是“打印”对话框,因为指定最后一个参数“Microsoft print to PDF”已经忽略了“打印”对话框。