[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 194
  • Last Modified:

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
0
manta357
Asked:
manta357
  • 2
1 Solution
 
HemanthaKumarCommented:
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

~Hemanth
0
 
qwaleteeCommented:
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.
0
 
manta357Author Commented:
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.
0
 
HemanthaKumarCommented:
Example in help doc will help u get started
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now