VintaSoft Imaging .NET SDK 14.1: Documentation for .NET developer
Vintasoft.Imaging.Office.OpenXml Namespace / OpenXmlDocumentConverter Class / ConvertRtfToDocx Methods / ConvertRtfToDocx(String,String) Method
Syntax Example Requirements SeeAlso
In This Topic
    ConvertRtfToDocx(String,String) Method (OpenXmlDocumentConverter)
    In This Topic
    Converts a RTF document to a DOCX document.
    Syntax
    'Declaration
    
    Public Overloads Shared Sub ConvertRtfToDocx( _
    ByVal rtfFilename
    The filename of input RTF document.
    As System.String, _
    ByVal docxFilename
    The filename of output DOCX document.
    As System.String _
    )
    public static void ConvertRtfToDocx(
    System.String rtfFilename,
    System.String docxFilename
    )
    public: static void ConvertRtfToDocx(
    System.String rtfFilename,
    System.String docxFilename
    )
    public:
    static void ConvertRtfToDocx(
    System.String rtfFilename,
    System.String docxFilename
    )

    Parameters

    rtfFilename
    The filename of input RTF document.
    docxFilename
    The filename of output DOCX document.
    Example

    This C#/VB.NET code shows how to convert RTF document to a DOCX document.

    
    ''' <summary>
    ''' Converts RTF document to a DOCX document.
    ''' </summary>
    ''' <param name="rtfFilePath">Path to a source RTF file.</param>
    ''' <param name="docxFilePath">Path to a result DOCX file.</param>
    Public Shared Sub ConvertRtfToDocx(rtfFilePath As String, docxFilePath As String)
        Vintasoft.Imaging.Office.OpenXml.OpenXmlDocumentConverter.ConvertRtfToDocx(rtfFilePath, docxFilePath)
    End Sub
    
    
    
    /// <summary>
    /// Converts RTF document to a DOCX document.
    /// </summary>
    /// <param name="rtfFilePath">Path to a source RTF file.</param>
    /// <param name="docxFilePath">Path to a result DOCX file.</param>
    public static void ConvertRtfToDocx(string rtfFilePath, string docxFilePath)
    {
        Vintasoft.Imaging.Office.OpenXml.OpenXmlDocumentConverter.ConvertRtfToDocx(rtfFilePath, docxFilePath);
    }
    
    

    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also