<div dir="ltr"><div>This code will print the currently-open model to metafile:</div><div><br></div><div><div>if (GMEConsole::Console::gmeoleapp)</div><div>{</div><div>    CComPtr<IGMEOLEIt> model;</div><div>    if (SUCCEEDED(GMEConsole::Console::gmeoleapp->get_OleIt(&model)))</div><div>    {</div><div>        model->DumpWindowsMetaFile(_bstr_t("c:\\path_to_file.emf"));</div><div>    }</div><div>}</div></div></div>