code for button that will open OLE object for editing

Posted on 2004-11-22
Last Modified: 2013-12-18
Hi All,
I'm looking for some code to assign to a button that will open an embedded MS Word object for editing. Most people will have the form that contains the button and OLE object opened in Read mode rather then Edit mode when they click on it.
Object class: Word.Document.8
Name: MSWordDoc
This is strickly an internal database that will be accessed with the Notes client so it doesn't need to be web friendly.

appreciate any help
Question by:manta357
    LVL 24

    Accepted Solution

    Use NotesEmbeddedObject.Activate method to open the ole obj

    To get the handl of EmbeddedObject use NotesRichTextItem.EmbeddedObjects Array and loop thru the list of objects and activate

    LVL 31

    Expert Comment

    If the OLE object is the first thing selected on the form then @Command([ObjectOpen]) will work.  Of course, users can just double-click the object to open it -- you will get a message that says the object can't be saved back to Notes because it is not being edited.

    Sometimes users can't tell that there is an OLE object present.  @Command([ViewShowObject]) causes Ntes to display the object border in read mode, the same as it usually displays in eidt mode.

    Author Comment

    qwaletee -that's pretty much how it is now, the problem is some users get confused between opening a record and having it open for editting, and it needs to be in edit mode so they can save changes (if they make them) to the embedded Word object. I'm trying to simplify it for them: open record - click button - make changes.

    Hemanth -I'm still a newbie to lotusscript, but that gives me some commands and a direction to look into. Let me poke around with it abit and post back.
    LVL 24

    Expert Comment

    Example in help doc will help u get started

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Suggested Solutions

    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…
    For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
    This video discusses moving either the default database or any database to a new volume.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    761 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

    11 Experts available now in Live!

    Get 1:1 Help Now