# Merging Documents

## Content

**C1Word** supports programmatic merging of multiple Word documents, including `.docx` and `.rtf` files. This capability enables applications to combine large document content efficiently without manual copy-and-paste operations.

```auto
// load two files  
var doc1 = new C1WordDocument();  
doc1.Load("File1.docx");  
var doc2 = new C1WordDocument();  
doc2.Load("File2.rtf");  
// merge (add to end)  
foreach (var obj in doc2.MainSection)  
{  
doc1.Add(obj);  
}  
// save result  
doc1.Save("MergedFile.docx");  
```