VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.Office.OpenXml Namespace / OpenXmlDocumentConverter Class / ConvertTsvToXlsx Methods / ConvertTsvToXlsx(String,String,XlsxConverterSettings) Method
Syntax Example Requirements SeeAlso
In This Topic
ConvertTsvToXlsx(String,String,XlsxConverterSettings) Method (OpenXmlDocumentConverter)
In This Topic
Converts a TSV (Tab Separated Values) file to an XLSX document.
Syntax
'Declaration

Public Overloads Shared Sub ConvertTsvToXlsx( _
ByVal tsvFilename
The filename of input TSV file.
As System.String, _
ByVal xlsxFilename
The filename of output XLSX document.
As System.String, _
ByVal converterSettings
The settings for XLSX converter.
As Vintasoft.Imaging.Codecs.Decoders.XlsxConverterSettings _
)
public static void ConvertTsvToXlsx(
System.String tsvFilename,
System.String xlsxFilename,
Vintasoft.Imaging.Codecs.Decoders.XlsxConverterSettings converterSettings
)

Parameters

tsvFilename
The filename of input TSV file.
xlsxFilename
The filename of output XLSX document.
converterSettings
The settings for XLSX converter.
Example

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);
}

Requirements

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

See Also