Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Internet Explorer Objects & Properties
Message
From
29/05/2001 14:00:57
Evert Van Breemen
Mincro Applications (Pty) Ltd.
Fourways, South Africa
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Internet Explorer Objects & Properties
Miscellaneous
Thread ID:
00512326
Message ID:
00512326
Views:
50
I need to copy the IE (Internet Explorer) shown picture to the
clipboard and then paste it into the body of the (Outlook 2000)
email message.

This shown picture in IE, will in this application's case, be the
'customers order on supplier' form. The form was created by changing
the html (.htt) template code, by replacing the various variable
fields, such as the Product codes, Supplier code, Order number etc. and
creating an output file 'Order.htm'.
When you move the html text into the body of the (Outlook 2000) message
you ofcourse get html text only.

But if you copy and paste the newly generated html as displayed by IE
into the body of the email, voila you get a rich graphics based email
message (In this case the company order on its supplier with logo and
text boxes).

My code so far is:

oOutlook = CreateObject("Outlook.Application")
#DEFINE olMailItem 0
oMailItem = oOutlook.CreateItem(olMailItem)

oExplorer = CreateObject("InternetExplorer.Application")
oExplorer = oExplorer.Navigate("C:\Orders\Order.htm")
oExplorer.Visible = .T.
<=== Need clipboard copy method here


WITH oMailItem
.Subject = "Company Order"
.Body = <=== Need some sort of paste method here
.Recipients.Add("Supplier ABC")
ENDWITH

oMailItem.Save()
oMailItem.Send()

-----------------------------------------

Is the above achievable?

Where does one find the Objects and properties for IE and Outlook
to finish the above code.?

The easy way out is to create an attachment, but I want to specifically
create the order in the body itself.


Thanks,

Evert
Reply
Map
View

Click here to load this message in the networking platform