The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 export metafile
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

nicoc

Japan
Posts

Posted - 03/03/2005 :  05:26:44 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version : 7 pro
Operating System: Xp

I haven't found an originC module for exporting the graphs so I include a labtalk function. It works well for jpg or bmp, but I can't make wmf.

Here is my function:

void exportgraph(string adresseext)
{
string LTcmd;

LTcmd="Image.FileName$ = "+adresseext+";"
"Image.ShowOptions = 0;"
"Image.Export.PagePixel( JPG, 640, 480, 24, 5 );";
LT_execute(LTcmd);
}

Thanks,

nicolas

Leo_Li

China
Posts

Posted - 03/28/2005 :  06:20:20 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I am not sure whether it is availabe in Pro7.0, but in Pro7.5, Origin C can do it:

PageBase pbActive;
pbActive = Project.Pages();
string strPgName = pbActive.GetName();
Page pg(strPgName);
export_page_to_image(pg, "C:\\test.wmf", "wmf", false);

Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 03/28/2005 :  11:25:04 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Nicolas,

LabTalk's image.export.pageDPI() works with WMF in Origin 7 SR4.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 03/28/2005 11:33:58 AM
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000