Expert Answer Center > Experts On Demand > View Answer
EMAIL THIS
Experts on Demand
  EXPERTS ON DEMAND HOME     POSE A QUESTION     VIEW ANSWERS     BROWSE BY TOPIC        RSS FEEDS  
Why can't I extract embedded objects in the body of a message using LotusScript (Notes 6.5.2)?

I can get attachments using the EmbeddedObjects property, but not graphics in a message. I'm using this code to test to see what is embedded:

If Isarray(rtItem.EmbeddedObjects) Then
 Forall Object In RTItem.EmbeddedObjects
  Select Case Object.Type
   Case EMBED_ATTACHMENT:
     Messagebox "Attachment"
   Case EMBED_OBJECT:
     Messagebox "Embedded"
   End Select
  End Forall
End If
QUESTION POSED ON: 17 JUN 2005
QUESTION ANSWERED BY: Mathew Newman If the graphic in the message is referenced via an HTML link (i.e., img src), the "object" is NOT and OLE object, and, therefore, is not accessible through the code you are calling.

The code you are writing is correct for handling any file attachment or OLE file (i.e., [Create] menu --> [Object]), but will not work if the "object" you are looking at is enclosed in HTML.

Add some code to go directly to the source of the referenced file and save it to your required location, along with any other EmbeddedObjects in the document.

HomeExperts on DemandIT Expert Webcast SeriesExpert KnowledgebaseSite Index
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 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts