RDODocumentItem represents any
document other than a Microsoft Outlook item as an item in an Outlook folder.
RDODocumentItem is derived from the
RDOMail object and as such inherits all the
properties, methods and events implemented by the RDOMail
object and adds the following methods and properties
The following below creates or opens a
folder in Outlook and copies all files from the specified file folder to
Outlook.
|
In addition to all the
properties and methods specific to RDODocumentItem , it also implements
all properties, methods and events of the RDOMail
object, from which it is derived. |
|
Properties |
|
ApplicationName |
Specifies the application that might open the file attached to the
document object.
|
|
Author |
Represents the author of the file attached to the Document object.
|
|
ByteCount |
Specifies the size, in bytes, of the file attached to the Document
object.
|
|
CharacterCount |
Specifies the number of characters in the file attached to the Document
object
|
|
Comments |
Specifies the comments of the file attached to the Document object
|
|
Company |
Specifies the company for which the file was created
|
|
CreateDateTime |
Specifies the time that the file was first created
|
|
DocumentParts |
Specifies the title of each part of the document.
|
|
DocumentSubject |
Specifies the subject of the file attached to the Document object.
|
|
EditTime |
Specifies the time that the file was last edited.
Note that this property is a string, not DateTime and contains a free
formatted description, e.g. "1 minute".
|
|
HeadingPairs |
Specifies which group of headings are indented in the document
|
|
HiddenCount |
Specifies the hidden value of the file attached to the Document object
|
|
LastAuthor |
Specifies the most recent author of the file attached to the Document
object.
|
|
LastPrinted |
Specifies the time that the file was last printed.
|
|
LastSaveDateTime |
Specifies the time that the file was last saved.
|
|
LineCount |
Specifies the number of lines in the file attached to the Document
object.
|
|
LinksDirty |
Indicates whether the links in the document are up-to-date. The value
TRUE indicates that the links are up-to-date; FALSE indicates otherwise.
|
|
Manager |
Specifies the manager of the file attached to the Document object.
|
|
MultimediaClipCount |
Specifies the number of multimedia clips in the file attached to the
Document object.
|
|
NoteCount |
Specifies the number of notes in the file attached to the Document
object.
|
|
PageCount |
Specifies the page count of the file attached to the Document object.
|
|
ParagraphCount |
Specifies the number of paragraphs in the file attached to the Document
object.
|
|
PresentationFormat |
Specifies the presentation format of the file attached to the Document
object..
|
|
RevisionNumber |
Specifies the revision number of the file attached to the Document
object.
|
|
Scale |
Indicates whether the image is to be scaled or cropped. The value TRUE
indicates thumbnail scaling; FALSE indicates cropping.
|
|
Security |
Specifies the security level of the file attached to the Document
object.
|
|
SlideCount |
Specifies the number of slides in the file attached to the Document
object.
|
|
Template |
Specifies the template of the file attached to the Document object.
|
|
Thumbnail |
Specifies the data representing the thumbnail image of the document.
|
|
Title |
Specifies the title of the file attached to the Document object.
|
|
WordCount |
Specifies the number of words in the file attached to the Document
object.
|
|
|
Methods |
|
SetDocument(Path) |
Attaches the specified document as an attachment, sets the message class
appropriately, attempts to extract file properties (see above) either
from the document itself (in case of the MSD Office documents) or from
the alternate file streams (accessible through Details tab of the file
Properties dialog in Windows Explorer).
Path - string. Specifies fully qualified path of the
file to be added.
|
set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set Folder = Session.GetDefaultFolder(olFolderDrafts)
set Msg = Folder.Items.Add("IPM.Document")
Msg.SetDocument("Z:\Temp\image001.jpg")
Msg.Save
|
|