The simplest example of creating and saving a Word document (.docx) using the Openize.Words v25.7.0 library generates a file that is not recognized as valid by Microsoft Word (and other DOCX readers).
using System.Windows.Forms;
using Openize.Words;
namespace TestOpenize
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
// 1. Créer une instance de Document.
Document doc = new();
// 6. Sauvegarder le Document sur le disque.
doc.Save(@"C:\Temp\Docs.docx");
}
}
}