Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VB Into Lotus using OLE

Posted on 2000-03-03
1
Medium Priority
?
436 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 150 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
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…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month13 days, 4 hours left to enroll

971 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