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
 All Forums
 Origin Forum
 Origin Forum
 how to create wmf output from origin

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
bnebenda Posted - 05/08/2003 : 07:05:28 AM
Hello,

I'd like to create windows metafile (or other formats suitable to be imported into Word/Powerpoint Documents) from Origin. Is there a convenient way to do this. Up to now I convert the Printfiles (Postscript) using an offline tool.

Thanks for your help

Bernd
2   L A T E S T    R E P L I E S    (Newest First)
greg Posted - 05/09/2003 : 12:36:18 PM
User SVDO_Origin1 provides some excellent Origin 7 OriginC code to export all graphs in a project, but our records indicate you have Origin 6.1 (no OriginC) and I think you were just looking for a simpler solution.
With any Graph window active, you can select File : Export Page from the menu to save your graph in a number of different file formats - including Encapsulated PostScript (EPS), Windows MetaFile (WMF) and Enhanced MetaFile (EMF). Any of these should work in Office applications. You can also go 'through' the Clipboard by selecting Edit : Copy Page.
Keep in mind that Word and PowerPoint (for example) can treat the same file differently (and the Clipboard is basically a metafile), and you can fiddle with the Origin options under Tools : Options : Page and adjust the export options by selecting Show Export Options.


hajo_old Posted - 05/08/2003 : 07:55:02 AM
Hello, Bernd

I wrote the following function exporting WMF's from all graphics files created within a Project folder.

Mayby, this is an example for you and leads you the way to code your own stuff!

Happy coding ...
If there are questions, feel free to contact me
mailto:hans-joerg.koch@siemens.com

Hajo





void _exportWMF_Project_Folder()
{
PageBase gp;
// Create a Project object
Folder aktFld;
aktFld = Project.ActiveFolder();

string strPath="NULL";
strPath = BrowseGetPath(NULL, "Ausgabepfad für WMF Export auswählen");

if (strPath != "")
{
// Loop over all the pages in the project and display their names:
//progressBox aa("exportiere Grafiken nach WMF (gesamtes Projekt) ...");
int imax = 0;
int z = 0;
// Bestimmung von imax = Anzahl der Graph-Dateien im Projekt
foreach (gp in Project.ActiveFolder().Pages)
{
if (gp.GetType()==EXIST_PLOT)
{
imax++;
}
}
printf("Anzahl Grafiken %i\n", imax);

//aa.SetRange(0,imax);
foreach (gp in aktFld.Pages)
{
if (gp.GetType()==EXIST_PLOT)
{
//aa.Set(z++);
string strfname, strFldName;
// out_str(gp.GetName());
// Export der Grafiken durchfuehren
// Dateiname generieren:
// <Projektordner>_<GrafikObjekt-Label>.WMF
Folder fld;
fld = Project.GetFolderWithPage(gp.GetName());
fld.GetName(strFldName);

PageBase pb(gp.GetName());
strfname = strFldName + "_" + pb.label;
strfname.Replace(" ", "_");

gp.Show();
// Ausgabestring festlegen
strfname = strPath + strfname + ".WMF";
out_str(strfname);
string lt_str = "export.image(\""+strfname+"\", WMF)";
LT_execute(lt_str);
}
}
printf("WMF-Export von %i Dateien abgeschossen", imax);
}
else
{
MessageBox( NULL, "WMF-Export abgebrochen!", "Warning!", MB_ICONEXCLAMATION | MB_OK | MB_APPLMODAL)
}
}



mailto:hans-joerg.koch@siemens.com

-- --
Dipl.-Ing. Hans-Joerg Koch
Siemens VDO, Regensburg

SVDO_Origin1

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000