ConvertRtfToDocx(String,String) Метод (OpenXmlDocumentConverter)
Преобразует RTF документ в DOCX документ.
Этот C#/VB.NET код показывает, как преобразовать RTF документ в DOCX документ.
Namespace ReferenceAPI.Vintasoft_Imaging
''' <summary>
''' Пример Programming-Codecs-How_To_Convert_Rtf_To_Docx.html
''' </summary>
Public Class ConvertRtfToDocxExample
'[BLOCK:ConvertRtfToDocx]
''' <summary>
''' Converts RTF file to a DOCX file.
''' </summary>
Public Shared Sub ConvertRtfToDocx(rtfFilePath As String, docxFilePath As String)
Vintasoft.Imaging.Office.OpenXml.OpenXmlDocumentConverter.ConvertRtfToDocx(rtfFilePath, docxFilePath)
End Sub
'[ENDBLOCK]
End Class
End Namespace
namespace CSHARP.ReferenceAPI.Vintasoft_Imaging
{
/// <summary>
/// Пример Programming-Codecs-How_To_Convert_Rtf_To_Docx.html
/// </summary>
public class ConvertRtfToDocxExample
{
//[BLOCK:ConvertRtfToDocx]
/// <summary>
/// Converts RTF document to a DOCX document.
/// </summary>
public static void ConvertRtfToDocx(string rtfFilePath, string docxFilePath)
{
Vintasoft.Imaging.Office.OpenXml.OpenXmlDocumentConverter.ConvertRtfToDocx(rtfFilePath, docxFilePath);
}
//[ENDBLOCK]
}
}
Целевые платформы: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5