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

Avatar of undefined
Last Comment
David Lee

8/22/2022 - Mon
David Lee

Hi, staarship.

I'm not sure what you mean by "open" in this context.  Can you describe how you want this to work?
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.
staarship

ASKER
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..
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
David Lee

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

ASKER
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
David Lee

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
kmanoharnaik

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
staarship

ASKER
awaiting solution..
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
David Lee

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.