Solved

VB Into Lotus using OLE

Posted on 2000-03-03
1
434 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

635 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