WPF 6.3.16
Demos Support Blog Download
Show / Hide Table of Contents
PDF

Class CsvOptions

Provides properties to manage CSV export behaviors.

Inheritance
System.Object
CsvOptions
Implements
IReportDispose
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: BoldReports.Writer
Assembly: BoldReports.Wpf.dll
Syntax
public class CsvOptions : IReportDispose, IDisposable

Constructors

CsvOptions()

Declaration
public CsvOptions()

Properties

EliminateHeader

Gets or sets a value indicating whether to eliminate the header row in the output.

Declaration
public bool EliminateHeader { get; set; }
Property Value
Type Description
System.Boolean

true if the header row should be eliminated; otherwise, false.

Encoding

Gets or sets the encoding of the output file.

Declaration
public Encoding Encoding { get; set; }
Property Value
Type Description
System.Text.Encoding

The default value is UTF-8.

FieldDelimiter

Gets or sets the field delimiter string to separate field in the result.

Declaration
public string FieldDelimiter { get; set; }
Property Value
Type Description
System.String

A string containing the delimiter, the default value is a comma (,).

FileExtension

Gets or sets the extension of the result file. FileExtension are specified then FileExtension will take precedence.

Declaration
public string FileExtension { get; set; }
Property Value
Type Description
System.String

A string containing the file extension.

Qualifier

Gets or sets the qualifier string which is put around the output result if contain the field delimiter or record delimiter.

Declaration
public string Qualifier { get; set; }
Property Value
Type Description
System.String

A string containing the qualifier, the default value is a quotation mark (").

RecordDelimiter

Gets or sets the record delimiter which is put at the end of each record.

Declaration
public string RecordDelimiter { get; set; }
Property Value
Type Description
System.String

A string containing the delimiter, the default value is "\r\n".

SuppressLineBreaks

Gets or sets a boolean value that indicates whether the line breaks are removed from the data included in the output or not.

Declaration
public bool SuppressLineBreaks { get; set; }
Property Value
Type Description
System.Boolean

The default value is false.

UseFormattedValues

Gets or sets a boolean value indicating whether the report formatted text needs to be included in the CSV file.

Declaration
public bool UseFormattedValues { get; set; }
Property Value
Type Description
System.Boolean

The default value is true.

Methods

Dispose()

Provides a mechanism for releasing unmanaged resources.

Declaration
public void Dispose()
Remarks

It close or release unmanaged resources such as files, streams, and handles held by an instance of the class that implements this interface.

Implements

IReportDispose
System.IDisposable
In This Article
Was this page helpful? Yes No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
×
SEND FEEDBACK REGARDING THIS TOPIC

Please provide additional information

Please provide additional information

Please provide additional information

Please provide additional information
Please provide additional information
Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved