Rene Walkiers
Rene Walkiers

Reputation: 1

lotusnotes 8.5 print button for a persivic printer

I would like to make a second print button in lotus notes 8.5 for a persivic printer that is not the Default printer. Does anybody knows a script for this.

I started to play with @Command(FilePrint) but that is as far as I got. I'm a noob with this but I'm here to learn ;)

With kind regards,

Rene

Upvotes: 0

Views: 971

Answers (1)

OTTA
OTTA

Reputation: 1081

I think you'll need to use lotusscript, take a look at the NotesUIDocument.print method, in 8.5 it has a parameter allowing you to specify which printer to use.

This example script prints one copy of the current document on the printer "Printer247":

Sub Click(Source As Button)
  Dim workspace As New NotesUIWorkspace
  Dim uidoc As NotesUIDocument
  Set uidoc = workspace.CurrentDocument
  Call uidoc.Print( 1, 0, 0, False, "Printer247" )
End Sub

Upvotes: 2

Related Questions