|
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
|