ComponentOne Word for WinForms
Working with Word for WinForms / Advanced Level Working / Reading and Writing Docx Files
In This Topic
    Reading and Writing Docx Files
    In This Topic

    Word component allows reading and writing word document with Microsoft Word Open XML format (*.docx) extension. You can use the Load method to read a document and Save method to write a document as illustrated in the following code:

    ' load Word/RTF document
    Dim C1Word As New C1WordDocument()
    C1Word.Load(dlg.FileName)
    
    ' save Word (docx) document
    C1Word.Save("sample.docx")
    
    // load Word/RTF document
    C1WordDocument C1Word = new C1WordDocument();
    C1Word.Load(dlg.FileName);
     
    // save Word (docx) document
    C1Word.Save("sample.docx");