# Render to DOCX or RTF

## Content

Set `C1WordDocument` as the rendering target to generate DOCX or RTF output.

```csharp
using C1.Chart;
using C1.Chart.Standard;
using C1.Word;

var chart = new FlexChart();
// Configure the chart.

using (var doc = new C1WordDocument())
{
    float margin = 72;
    float width = doc.PageSize.Width - 2 * margin;
    float height = (doc.PageSize.Height - 2.5f * margin) / 2;

    chart.Render(doc, margin, margin, width, height);
    doc.Save("Chart.docx");
}
```