Link to home
Start Free TrialLog in
Avatar of staarship
staarship

asked on

List of outlook OLE properties and functions

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.
Avatar of David Lee
David Lee
Flag of United States of America image

Hi, staarship.

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

ASKER

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.
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..
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.
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..
ASKER CERTIFIED SOLUTION
Avatar of David Lee
David Lee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
awaiting solution..
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.