# Saving C1Chart as a .Png File

## Content



To save **C1Chart** as a .Png file, use the following code:

```vbnet
' save image to file
Using stm = System.IO.File.Create("chart.png")
    c1Chart1.SaveImage(stm, C1.WPF.C1Chart.Extended.ImageFormat.Png)
End Using
```

```csharp
// save image to file   
      using (var stm = System.IO.File.Create("chart.png"))
      {
        c1Chart1.SaveImage(stm, C1.WPF.C1Chart.Extended.ImageFormat.Png);
      }
```

## See Also

[Series Generation](/componentone/docs/wpf/online-chart/overview/ChartFeatures/SeriesGeneration)