we have this code:
Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
'a code for a messagebox is inserted here
and we are getting the error "Document Command is not available" after the Call uidoc.Print row. Does anyone have an idea how to solve this?