Framework EDI Reference. Methods and Properties
mailDocument. Option

Sets or gets an optional feature of a mailDocument interface.

Syntax:

Parameters:

Returns:

Returns 1 if the option is enabled; 0 if the option is disabled.

Example:

Dim oEdiDoc As Fredi.ediDocument
Dim oMailDocument As Fredi.mailDocument

' Create instance of Framework EDI.
Set oEdiDoc = New Fredi.ediDocument

' Get internet mail document object
Set oMailDocument = oEdiDoc.GetMailDocument

oMailDocument.Option(MailDocOpt_Auto) = 0

' Load EDI document normally.
oMailDocument.Load App.Path & "\SampleMail.TXT"

oMailDocument.Save App.Path & "\Output.TXT"

MsgBox "Done"

Samples