test it!
Sub Click(Source As Button)
Dim session As New NotesSession
Dim workspace As New NotesUIWorkspace
Dim db As New NotesDatabase("","")
Dim view As NotesView
Dim uidoc As NotesUiDocument
Dim doc As NotesDocument
Dim UiView As NotesUIView
Set db = session.CurrentDatabase
Set view = db.GetView("deine ansicht")
Set doc = view.GetFirstDocument
Set UIView = workspace.currentview
While Not(doc Is Nothing)
Call Uiview.Print( 1,,,,,"deine maske",False)
Set doc = view.GetNextDocument(doc)
Wend
End Sub