EDIWriter Configuration
The class accepts one or more of the following configuration settings. Configuration settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the class, access to these internal properties is provided through the Config method.EDIWriter Configuration Settings
CloseStreamAfterInterchange: Controls when the output stream is closed. If true, the class will close the output stream when CreateInterchangeFooter is called. If false, the stream is left open and Flush must be called to ensure all output has been written to the stream. The default value is false. | |||||||
DontUseUNA: Disables automatic generation of UNA segment. If true, no Service String Advice (UNA) segment will be generated for EDIFACT interchanges. The default value is false. | |||||||
EdifactSyntaxVersion: Changes the syntax version used for EDIFACT control segments. Can be a number from 1 to 4. The default value is 1. | |||||||
Encoding: The character encoding to be applied when reading and writing data. If the data contains non-ASCII characters this setting should be specified so characters are properly preserved. This value should be set to a valid character set such as "UTF-8" or "ISO-8859-1". | |||||||
ComponentDelimiter: The delimiter character to use to separate components. When set, this changes the default delimiter to use to separate components within a data element. The default value depends on the EDI specification being used. This should be set after setting EDIStandard. Setting EDIStandard resets the default delimiter value. | |||||||
ElementDelimiter: The delimiter character to use to separate data elements. When set, this changes the default delimiter to use to separate data elements within a segment. The default value depends on the EDI specification being used. | |||||||
ReleaseChar: The character to use to escape delimiters within values. When set, this changes the default escape character. The default value depends on the EDI specification being used. | |||||||
RepetitionChar: The repetition character. When set, this changes the default repetition character. The default value depends on the EDI specification being used. | |||||||
SegmentDelimiter: The delimiter character to use to separate segments. When set, this changes the default delimiter to use to separate segments within an EDI document. The default value depends on the EDI specification being used. | |||||||
TransactionOnly: Ignores interchange and functional group validation, allowing you to build the transaction body. When set to true, interchange and functional group headers will not be required. This allows building of the transaction level of an EDIFact document without specifying a document type. | |||||||
StrictSchemaValidation: Specifies the behavior during schema validation. This setting specifies what happens when performing schema validation and a validation warning occurs. By default this value is set to 1 (Warn) and the Warning event will fire, but processing will not stop. See the WarnCode parameter list in the Warning event for details about possible validation warnings. Possible values for this setting are:
|
Base Configuration Settings
SelectWaitMillis: The length of time in milliseconds the class will wait when DoEvents is called if there are no events to process. If there are no events to process when DoEvents is called, the class will wait for the amount of time specified here before returning. The default value is 20. |
Base Configuration Settings
CodePage: The system code page used for Unicode to Multibyte translations. The default code page is the Active Code Page (0). The following is a list of valid code page identifiers:
The following is a list of valid code page identifiers for Mac OS only:
|