Solved

VB Into Lotus using OLE

Posted on 2000-03-03
1
427 Views
Last Modified: 2013-12-18
Im Trying to get a visual basic program to load a Lotus Notes Document into the Lotus Notes Client......


The Lotus Notes Object Model has a OLE class called NotesUIWorkspace with the method

NotesUIDocument = EditDocument(edit,document,readonly,docanchor)

Ive tryed getting the Document ID which i can do using the domino com objects, but when i give the OLE workspace class the Document it errors on me, can someone please tell me what im doing wrong ?
0
Comment
Question by:clivegb
1 Comment
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 50 total points
ID: 2581496
Hi

Follwo this example this may help you to troubleshoot your code.
-----------------
Dim session, db, ws As Object
Dim uidoc, doc As Object

Set session = CreateObject("Notes.NotesSession")
    Set db = session.GetDatabase("", "test.nsf")
   
    Set ws = CreateObject("Notes.NotesUIWorkspace")
    'Call ws.OpenDatabase("", "test.nsf")
    Set doc = db.GetDocumentByUNID("<Doc Id>")
Set uidoc = ws.EditDocument(edit,document,readonly,docanchor)

-----------------


Good Luck
~Hemanth
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now