MetaFiles

I am using the following code to display a metafile


    aBlock := TDiagramBlock.Create(Self);
    aBlock.Shape := bsNoShape;
    aBlock.Picture.LoadFromFile('MetaFile.wmf');


or


    aBlock.Metafile.LoadFromFile('MetaFile.wmf');



but no graphic is displayed.

Am i missing something?

Thanks.

Metafiles are not supported by Direct2D, which is probably the default engine used by the component. Try force the engine to GDI+:


atDiagram1.GraphicLib := dglGdiPlus;