Format specifies desired result document type. Available options are: Xls, Xlsx, Xlsm, Xlsb, Ods, Ots, Xltx, Xlt, Xltm, Tsc, Xlam, Csv, Tsv.
Encoding specifies the encoding to be used when converting to delimited formats (CSV, TSV). Default is UTF-8.
Separator specifies the separator character to be used when converting to delimited formats (CSV, TSV). For CSV, the default is comma (,). For TSV, use tab character (\t).
Password whether the converted document will be password protected with the specified password.
Zoom specifies the zoom level in percentage. Default is 100.
The following code snippet shows how to convert to Spreadsheet with advanced options:
Use a custom separator character for CSV conversion. Semicolon separator is common in European locales where comma is used as a decimal separator:
using(Converterconverter=newConverter("sample.xlsx")){SpreadsheetConvertOptionsoptions=newSpreadsheetConvertOptions{Format=SpreadsheetFileType.Csv,Separator=';'// Semicolon separator for European locales};converter.Convert("converted.csv",options);}
Converting to CSV with Encoding and Separator
Combine both encoding and separator settings for international CSV exports: