My users are receiving the error ‘Object Variable Not Set’ when trying to print from a doclink. Below is the code for the print button on the action bar. If they open the database directly and print the document, it works fine. One additional note: The document has an embedded view. Any thoughts?
Sub Click(Source As Button)
Dim ws As New NotesUIWorkspace
Dim uidb As NotesUIDatabase
Dim uiview As NotesUIView
Dim uidoc As NotesUIDocument
Set uidoc = ws.CurrentDocument
Call uidoc.Print(1)
Set uidb=ws.CurrentDatabase
Call uidb.OpenView("Employee")
Set uiview = ws.CurrentView
Call uiview.Print(1, , , , , , True, ,)
Call uiview.Close