2.1.13.5 export_page


Description

Export a page to an image using the page's export settings

Syntax

bool export_page( Page & pg, LPCSTR lpcszFileName, LPCSTR lpcszFormat = "EPS" )

Parameters

pg
[input] reference to the page to export
lpcszFileName
[input] pointer to the target file name
lpcszFormat
[input] pointer to the target format

Return

Returns 0 for success, non-zero for error.

Examples

EX1

void export_page_ex1()
{
    GraphPage        gp;
    gp.Create();
    if( !gp)
    {
        return;
    }
    
    string strExt("bmp");
    string strImagePath;
    strImagePath = GetAppPath(1) + "Test." + strExt;
    bool bRet = export_page(gp,strImagePath,strExt);    
}

Remark

See Also

Header to Include

origin.h

Reference