Solved

VB Into Lotus using OLE

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

789 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