General information
Category:
COM/DCOM and OLE Automation
Title:
Internet Explorer Objects & Properties
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only