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) Wend End Sub

This was first published in November 2000

Dig deeper on Domino Resources - Part 2

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchWinIT

Search400

  • iSeries tutorials

    Search400.com'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 ...

SearchEnterpriseLinux

SearchVirtualDataCentre.co.uk

Close