WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OLE and Outlook
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Add Attachment to Journal Item


olJournalItem = 4
;OlAttachmentType can be one of these OlAttachmentType constants. 
olByReference = 4 
olByValue = 1 
olEmbeddeditem = 5
olOLE =6

myOlApp = ObjectOpen("Outlook.Application")
myItem = myOlApp.CreateItem(olJournalItem)
myItem.Subject = "Test Subject"
myItem.Start = "05/19/2004 1:30:00 PM"
myItem.Duration = 90
myItem.type = "Taskxxx"
source = "C:\temp\test.doc"
type = olByReference
Name = "My Test Doc"
Address = ""
objAttachments = myItem.Attachments
objAttachments.Add(Source, Type, , )
myItem.Display


ObjectClose(objAttachments)
ObjectClose(myItem)
ObjectClose(myOlApp)

exit

Article ID:   W16580
File Created: 2005:02:18:12:21:32
Last Updated: 2005:02:18:12:21:32