Home > Ask the Domino Experts > ARCHIVE: LotusScript & Application Development Questions & Answers > Handle events of distant OLE objects inside Notes
Ask The Domino Expert: Questions & Answers
EMAIL THIS

Handle events of distant OLE objects inside Notes

Todd Fuder EXPERT RESPONSE FROM: Todd Fuder

Pose a Question
Other Domino Categories
Meet all Domino Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED BY: bgerth@lanexpert.ch on 20 March 2002
I am looking for a solution to handle from inside Lotus Notes with LotusScript events of distant OLE objects.

More precisely: how could I open an OLE connection for example to an Excel Spreadsheet and get/trap with LotusScript the click event on a button in the Excel Spreadsheet. In other words: How could I make my LotusScript in Lotus Notes react to the Button-Click event in the Excel Spreadsheet? LotusScript gives the opportunity to access properties and methods of OLE objects, but does it give the opportunity to handle/trap events of OLE objects?


>
There is an OnEvent method defined in Notes' LotusScript that allows you to design custom event handlers, but it is only available for Lotus native events (those defined within Notes). However, I have two suggested workarounds:

1. Have Excel perform Automation on Notes when the event fires in Excel.
Just have Excel perform an OLE automation (contacting Notes, performing whatever event handler you want, closing the connection to Notes).

2. Have Excel write something to a text file on the hard drive that Notes hangs around looking for (using the NotesTimer object), and performs the event handler code in Notes when it sees that item appear on the hard drive (have it check every second or something).

Personally, I like the first choice -- I think it's cleaner and neater (and cooler). But I haven't tried it between Notes and Excel. I have done something similar a long time ago between WordPro and Notes, and it worked pretty well.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
ARCHIVE: LotusScript & Application Development
Date being entered automatically into Replication settings
How can I create an anonymous mail-in form?
How do I forward multiple e-mails to numerous people?
Is it possible to put unread marks on each of the links in a navigator?
How can I query and add documents from Lotus Notes to SQL Server?
User ID appears as anonymous only when form is opened in IE
How can I restrict some people to creating only certain kinds of documents?
Getting "Frameset Manager IGNORE return code" error message
Categorize a view based on multiple criteria
Objects in for folders and memo actions

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Lotus Notes Domino on Blackberry and mobile devices
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts