Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 962
  • Last Modified:

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.
0
staarship
Asked:
staarship
  • 4
  • 4
2 Solutions
 
David LeeCommented:
Hi, staarship.

I'm not sure what you mean by "open" in this context.  Can you describe how you want this to work?
0
 
staarshipAuthor Commented:
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
 
staarshipAuthor Commented:
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
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
David LeeCommented:
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
 
staarshipAuthor Commented:
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
 
David LeeCommented:
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
 
kmanoharnaikCommented:
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
 
staarshipAuthor Commented:
awaiting solution..
0
 
David LeeCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now