Date: Tue, 24 Feb 2004 08:49:02 -0500
Reply-To: Quentin McMullen <quentin_mcmullen@BROWN.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Quentin McMullen <quentin_mcmullen@BROWN.EDU>
Subject: Re: Output CGM to Word
On Tue, 24 Feb 2004 05:17:50 -0500, Dave McCandless
<david.mccandless@EUROPE.PPDI.COM> wrote:
>Hi All,
>
>Was wondering if anyone could help me with a problem I'm having when
>outputting .cgm file to word using DDE. The .cgm file is created using
>SAS/GRAPH with goptions device = cgmof97l. When I use DDE to insert the
>created .cgm file onto a word template the resulting image is quite small
>and placed in the top left quarter of the Word page. Is it possible for
the
>image to take up the whole page?
>
>Here are the goptions that are in place,
>
>goptions device=cgmof97l rotate=landscape ftext=duplex prompt
> gsfmode=replace gsfname=plot gsflen=8192
> display gunit=pct horigin=0in vorigin=0in hsize=11in vsize=8.5in;
>
>Dave
Hi Dave,
If you search the archives, you should find examples of this.
Here is an insanely long link from a macro I posted doing something like
what you want. The post date was 8/20/2002:
http://groups.google.com/groups?q=cgm+quentin+word+group:comp.soft-
sys.sas&hl=en&lr=&ie=UTF-8&group=comp.soft-
sys.sas&selm=15104802790BD411A2C100D0B73EA33C02CA3873%40remailnt3-
re01.westat.com&rnum=1
Anyway, in my case I used the ScaleX and ScaleY commands to increase the
size of the image after insertion.
Snippet from the macro:
PUT '[InsertPicture .Name = "' "&inPath\&file" '"]';
PUT '[CharLeft 1,1]'; *select graph to format;
PUT '[FormatPicture .ScaleX = "235%", .ScaleY = "235%"]';
PUT '[CharRight 1,0]'; *unselect and move pointer over;
Hope that helps,
--Quentin