LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (November 2003, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 10 Nov 2003 16:50:44 -0800
Reply-To:   "Huang, Ya" <yhuang@AMYLIN.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Huang, Ya" <yhuang@AMYLIN.COM>
Subject:   Annotate, image function and emf format
Content-Type:   text/plain; charset="iso-8859-1"

Hi,

The following code works fine when the image is in gif format (m6v8c.gif, which is a yahoo logo, save from browser), but failed when image is in emf format, anyone has an idea why?

filename gout "c:\temp\junk.emf";

goptions reset=all device=emf gsfname=gout gsfmode=replace ftext=none hsize=3 in vsize=3 in;

symbol v=dot i=j; proc gplot data=sashelp.class; plot weight*age; run; quit;

goptions reset=all;

data xx; length function style $ 8; retain line 0 xsys ysys '2' hsys '3' x 8; function='move'; x=0; y=0; output; imgpath='c:\temp\junk.emf'; * imgpath='c:\temp\m6v8c.gif'; function='image'; y=y+100; x=x+100; style='fit'; output; run;

proc ganno annotate=xx datasys; run;

quit;

The error message is:

ERROR: Unable to read image c:\temp\junk.emf

But according to the SAS Help (build in help, not Online Doc, from which I couldn't even find the image function), emf is supported. I can see junk.emf with WORD or even SAS graph editor.

Thanks

Ya Huang


Back to: Top of message | Previous page | Main SAS-L page