Link to home
Start Free TrialLog in
Avatar of manta357
manta357

asked on

code for button that will open OLE object for editing

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
Andrew
ASKER CERTIFIED SOLUTION
Avatar of HemanthaKumar
HemanthaKumar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of qwaletee
qwaletee

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.
Avatar of manta357

ASKER

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.
Example in help doc will help u get started