Search code examples
lotus-noteslotus-dominolotusscriptlotus

Lotusscript - NotesUIDocument.Print


I want to print my notes document to pdf so I used

uidoc.Print(1,0,0,False,"Microsoft Print to PDF")

But I don't want this dialog to appear.

Save Print Output As

I want it to programmatically save as for example "C:\test\PrintToPDF.pdf" without asking the user to type in the file name and select the folder or path


Solution

  • There's no option for that, as far as I know. The prompt for the target filename is part of the driver, not part of Notes, and the NotesUIDocument.Print() method has no way of communicating the target filename to the driver. There wouldn't be, as standard print drivers don't ask for filenames.