ConvertTsvToXlsx(String,String,XlsxConverterSettings) Method (OpenXmlDocumentConverter)
Converts a TSV (Tab Separated Values) file to an XLSX document.
This C#/VB.NET code shows how to convert TSV document to a XLSX document.
''' <summary>
''' Converts TSV file to a XLSX file.
''' </summary>
''' <param name="tsvFilePath">Path to a source TSV file.</param>
''' <param name="xlsxFilePath">Path to a result XLSX file.</param>
Public Shared Sub ConvertTsvToXlsxWithSettings(tsvFilePath As String, xlsxFilePath As String)
Dim converterSettings As New Vintasoft.Imaging.Codecs.Decoders.XlsxConverterSettings()
converterSettings.ColumnAutoFit = True
Vintasoft.Imaging.Office.OpenXml.OpenXmlDocumentConverter.ConvertTsvToXlsx(tsvFilePath, xlsxFilePath, converterSettings)
End Sub
/// <summary>
/// Converts TSV file to a XLSX file.
/// </summary>
/// <param name="tsvFilePath">Path to a source TSV file.</param>
/// <param name="xlsxFilePath">Path to a result XLSX file.</param>
public static void ConvertTsvToXlsxWithSettings(string tsvFilePath, string xlsxFilePath)
{
Vintasoft.Imaging.Codecs.Decoders.XlsxConverterSettings converterSettings = new Vintasoft.Imaging.Codecs.Decoders.XlsxConverterSettings();
converterSettings.ColumnAutoFit = true;
Vintasoft.Imaging.Office.OpenXml.OpenXmlDocumentConverter.ConvertTsvToXlsx(tsvFilePath, xlsxFilePath, converterSettings);
}
Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5