CsvProfiles
OfficeIMO.CSV
Creates independent, editable options for common CSV workflows.
Inheritance
- object
- CsvProfiles
Methods
public static CsvLoadOptions CreateLoadOptions(CsvProfile profile) #Creates load options. Strict uses fixed UTF-8 with invalid-byte rejection, literal comment rows, strict quoting and column counts, duplicate-header rejection and redacted mapping failures. Spreadsheet detects delimiters and BOM encodings, keeps strict quoting and counts, and repairs missing or duplicate headers. Tsv reads tab-separated records with quotes as data, strict column counts, BOM-detected encodings and repaired headers. Compatibility retains existing defaults.
Parameters
- profile OfficeIMO.CSV.CsvProfile
Returns
CsvLoadOptionspublic static CsvReaderOptions CreateReaderOptions(CsvProfile profile) #Creates forward-only reader options with the same parsing policy as the selected load profile.
Parameters
- profile OfficeIMO.CSV.CsvProfile
Returns
CsvReaderOptionspublic static CsvSaveOptions CreateSaveOptions(CsvProfile profile) #Creates save options. Strict writes UTF-8 without BOM and CRLF while preserving values. Spreadsheet writes UTF-8 with BOM and CRLF and prefixes formula-like text with an apostrophe. Tsv writes tab-separated UTF-8 without BOM, LF line endings and no quoting; a field containing a tab or line break fails the write unless backslash escaping is selected. Compatibility retains existing defaults. TextWriter and string output have no byte encoding; the encoding applies to file and stream output.
Parameters
- profile OfficeIMO.CSV.CsvProfile
Returns
CsvSaveOptions