[gme-users] About implementing Print to metafile option in GME

Kevin Smyth kevin.m.smyth at gmail.com
Wed Feb 17 16:56:22 CST 2016


This code will print the currently-open model to metafile:

if (GMEConsole::Console::gmeoleapp)
{
    CComPtr<IGMEOLEIt> model;
    if (SUCCEEDED(GMEConsole::Console::gmeoleapp->get_OleIt(&model)))
    {
        model->DumpWindowsMetaFile(_bstr_t("c:\\path_to_file.emf"));
    }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20160217/ab54cd11/attachment.html>


More information about the gme-users mailing list