Solved

VB Into Lotus using OLE

Posted on 2000-03-03
1
429 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Validating Email Address 13 283
Lotus Domino 9 web server 6 77
IBM Lotus notes 9 88
Adding a named anchor in a Lotus Notes Form 6 83
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

932 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

9 Experts available now in Live!

Get 1:1 Help Now