Manage Learn to apply best practices and optimize your operations.

Corresponding Notesdocument & Notesuidocument

To convert a NotesUIDocument documents to NotesDocument, just try :

Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument
Set uidoc = workspace.CurrentDocument
Set doc = uidoc.Document

The following function convert NotesDocument documents to NotesUIDocument. This
function prints selected documents (checked in a view).
Sub Initialize

Dim session As New NotesSession
Dim db As NotesDatabase
Dim collection As NotesDocumentCollection
Dim doc As NotesDocument
Dim form As NotesForm
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument

Set db=session.CurrentDatabase
Set collection = db.UnprocessedDocuments
Set doc=collection.getFirstdocument

While Not doc Is Nothing
workspace.EditDocument False,doc ' part of the conversion
Set uidoc = workspace.CurrentDocument ' part of the conversion
Call uidoc.print
Call uidoc.Close
Set doc=collection.getnextdocument(doc)

End Sub

Dig Deeper on Domino Resources - Part 2



  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...