Date: Tue, 22 Jan 2008 06:24:46 -0800
Reply-To: "ajs2004@bigfoot.com" <ajs2004@BIGFOOT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "ajs2004@bigfoot.com" <ajs2004@BIGFOOT.COM>
Organization: http://groups.google.com
Subject: Re: SAS create "searchable" graph in word?
Content-Type: text/plain; charset=ISO-8859-1
You can easily get the titles and footnotes as real text ..
See
TS-674
An Introduction to Exporting SAS/Graph Output to Microsoft Office SAS
Release 8.2 and higher
http://support.sas.com/techsup/technote/ts674/ts674.html#IVH
and
ODS RTF Statement
http://support.sas.com/onlinedoc/913/getDoc/en/odsug.hlp/a002233360.htm
Here's an example that creates an rtf file (which you can open in
Word). Notice the use of the options bodytitle nogfootnote nogtitle.
_____
data sample;
do x = 1 to 5 by 0.1;
y = sin(x);
output;
end;
run;
goptions reset=all;
ods listing close;
ods rtf file='example1.rtf' bodytitle nogfootnote nogtitle;
symbol1 i=join;
proc gplot data=sample;
plot y * x;
title1 'This is a graph title';
footnote1 'This is footnote1';
run;
quit;
ods rtf close;
ods listing;
_____
You can probably use other types of file, like CGM or EPS or HTM, to
get similar results.
I expect there are ways to get all the text in this way. I can't
figure it out quickly, but I bet it's something to do with
Using Hardware Fonts
http://support.sas.com/onlinedoc/913/getDoc/en/graphref.hlp/font-using-hardware-fonts.htm
On Jan 22, 12:37 am, ya.hu...@AMYLIN.COM (Ya Huang) wrote:
> Hi there,
>
> A friend of mine asked me if there is a SAS driver that can create a SAS
> graph which later inserted into MS WORD and is searchable. Here "searchable"
> means one can use FIND command (ctrl/F) to search certain text string,
> which is part of the X/Y axis label or Title or Footnote. To me, it is
> impossible(?) to search a graph if it is in raster/bitmap format. It may
> be possible to search a graph if it is in vector format, such as EMF.
> I did a test where a word file include several emf graph. What I found is
> that it is possible to search a string in the X/Y label, but that picuture
> has to be selected and switched to "picture edit" mode, and it can only
> be done for one graph, since I can't select multiple graphs and switch
> all of them to "picture edit" mode in the same time.
>
> Any one good at WORD know if it is possible to search all the emf graphs
> in a word file? Or better yet, maybe there is another format which is
> searchable.
>
> Thanks
>
> Ya