?
Solved

List of outlook OLE properties and functions

Posted on 2010-11-11
12
Medium Priority
?
878 Views
Last Modified: 2013-02-11
Can i get the list of properties and functions available in Outlook OLE.
Basically, i want to open an image/pdf file directly in the body of the mail from my application which is in powerbuilder.
0
Comment
Question by:staarship
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
12 Comments
 
LVL 76

Expert Comment

by:David Lee
ID: 34114966
Hi, staarship.

I'm not sure what you mean by "open" in this context.  Can you describe how you want this to work?
0
 

Author Comment

by:staarship
ID: 34118080
I dont want the image to be sent as an attachment.. the image must be displayed within the body of the mail.. From outlook, using HTML --> Insert Picture. The same thing i want to make it happen using OLE functions through VB/Powerbuilder.
0
 

Author Comment

by:staarship
ID: 34119459
all messages in HTML format.. Even i wrote
ole_item.htmlbody =  "<html><p>This is a picture.</p> <img src='D:\11.bmp'>"

but when the mail is received.. the image is not displayed since the image is in the D:\ of my machine and not the recipients.. how to embed the image completely in the body of the mail..
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 76

Expert Comment

by:David Lee
ID: 34119465
First, HTML doesn't support OLE (object linking and embedding).  In HTML emails images can be linked or attached.  In order to use a link (which makes the images appear in the body of the email) you're going to need to move the images to web server or a file share that everyone who receives the message has access to.  You have the img tag syntax right.  You just need to change the location of the file and the URL that poits to it.
0
 

Author Comment

by:staarship
ID: 34119819
but while creating a mail using HTML in Outlook there is a option to Insert Picture. For this Insert Picture option is there any way by which i can code the same in my application. To attach a file there is Add function.. To insert picture i didnt get any function..
0
 
LVL 76

Accepted Solution

by:
David Lee earned 1000 total points
ID: 34119958
There is no function to insert a picture.  That's because the picture only exists in the HTML code.  There is an Add function to add an attachment because attachments are stored in a separate collection that has nothing to do with HTML.  So, there is no insert picture function just as there is no bold text function, change font function, or insert table function.  You can do all of those things from the interface too but there are no corresponding function calls for doing them.

If you are using Outlook 2007 or 2010, then you can use Word's object model to edit the body of an Outlook message.  I don't have much experience with programming in Word so I'm not sure if it has a function that can be used to insert a picture.
0
 
LVL 2

Assisted Solution

by:kmanoharnaik
kmanoharnaik earned 1000 total points
ID: 34300307
hi,

What you do is open browser in PowerBuilder IDE and select OLE tab page and select your OLE which you would be using and check the properties and functions for the same. By that you can check the list of attributes and proceed with the required function.

regards
msn
0
 

Author Comment

by:staarship
ID: 34533431
awaiting solution..
0
 
LVL 76

Expert Comment

by:David Lee
ID: 34533741
I already gave an answer.  There is no function for inserting a picture in Outlook's object model.  Speaking strictly from an Outlook perspective you cannot do what you want to do.
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What does UTC stand for?  “Coordinated Universal Time” – Think of this as the true time on Planet Earth that never changes with the exception of minor leap seconds here and there to account for the changes in the planet's rotation.   What does th…
This article describes how to import Lotus Notes Contacts into Outlook 2016, 2013, 2010 and 2007 etc. with a few manual steps. You can easily export and migrate Lotus Notes contacts into Microsoft Outlook without having to use any third party tools.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question