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



  • Favorite iSeries cheat sheets

    Here you'll find a collection of valuable cheat sheets gathered from across the iSeries/ community. These cheat ...

  • HTML cheat sheet

    This is a really cool cheat sheet if you're looking to learn more about HTML. You'll find just about everything you every wanted ...

  • Carol Woodbury: Security

    Carol Woodbury