Hi Hajo,
Try this code: does not pop up the graph windows.
Easwar
OriginLab.
void GrExport()
{
// Declare collection of PageBase objects in project
Collection<PageBase> pgbcoll;
pgbcoll = Project.Pages;
PageBase pgb;
GraphPage gpg;
// Loop over all PageBase objects
foreach (pgb in pgbcoll)
{
// Cast PageBase to GraphPage object
gpg = (GraphPage)pgb;
// If it is really a GraphPage, then proceed to export
if(gpg)
{
// Get Name
string strName = gpg.GetName();
printf("Found Graph Page: %s\n",strName);
// Export page to WMF
using image = LabTalk.image;
image.filename$ = strName + ".wmf";
image.export.pagedpi("WMF");
}
}
}