LOTUSSCRIPT/COM/OLE CLASSES
Examples: Print method
1. This form action script displays the File Print dialog box, where the user can either select settings for printing the current document, or select Cancel.
Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
Call uidoc.Print
End Sub
2. This form action script prints one copy of the current document without displaying the File Print dialog box.
Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
Call uidoc.Print( 1 )
End Sub
3. This script prints one copy of pages 2 and 3 of the current document.
Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = workspace.CurrentDocument
Call uidoc.Print( 1, 2, 3 )
End Sub
4. This 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
See Also
Print method
Glossary
Feedback on
Help
or
Product Usability
?
Help on Help
All Help Contents
Glossary