Q
Problem solve Get help with specific problems with your technologies, process and projects.

Why can't I extract embedded objects in the body of a message using LotusScript?

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
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.

This was last published in July 2005

Dig Deeper on LotusScript

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchExchange

SearchContentManagement

Close