Skip to content

Invalid DOCX file generated by basic Word example (Openize.Words) #38

@dargereflorent-beep

Description

@dargereflorent-beep

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions