Hi Johannes,
If using Origin C, you can try the following example.
void test_expgraph_lt()
{
GraphLayer gl = Project.ActiveLayer(); // get the active graph layer
if(!gl)
return;
// construct the LabTalk command
string strCmd = "expGraph type:=emf overwrite:=replace path:=G:\\";
strCmd += " filename:=\"";
strCmd += Project.GetName(); // project name
strCmd += "--";
strCmd += gl.GetPage().GetName(); // graph name
strCmd += "\" tr.margin:=2 tr1.unit:=3 tr1.Width:=100 tr2.tif.dotsperinch:=300;";
LT_execute(strCmd); // execute the LabTalk script
}
Penn