# Playing Metafiles

## Content

A Metafile is a type of file that can store variety of data. You can add .emf and .wmf images to your word documents. Following code shows the use of [DrawMetafile](/componentone/api/win/online-wordlibrary/dotnet-framework-api/C1.C1Word.4.8/C1.C1Word.C1WordDocument.DrawMetafile.html) method to draw a metafile image in a Word document:

```vbnet
Dim img As Image = Metafile.FromFile(dlg.FileName)
C1Word.DrawMetafile(DirectCast(img, Metafile))
```

```csharp
Image img = Metafile.FromFile(dlg.FileName);
C1Word.DrawMetafile((Metafile)img);
```