Newsgroups: bit.listserv.sas-l
Date:         Fri, 20 Nov 1992 09:36:00 EST
Reply-To:     Sally Muller <UNCSM1@UNC.BITNET>
From:         Sally Muller <UNCSM1@UNC.BITNET>
Subject:      SAS Graphs ==> Pagemaker

----------------------------------------------------------------------
SUMMARY:  SI authority requests to say a couple of words about
          SAS Graphs ==>> Pagemaker 4.0 thread
E-ADDR:   uncsm1@unc.bitnet
NAME:     Sally Muller
PH/ADDR:  919-962-6501  OIT CB#3455, UNC, Chapel Hill NC 27514
----------------------------------------------------------------------
Three cheers for SAS-L!!!!!  I think we all ought to pat
ourselves on the back for making this the best list ever!!!!!!
Trer Ott asked yesterday about importing a SAS graph into Aldus
Pagemaker 4.0 for Windows.  Trer said that that he "tried
encapsulated postscript, but all I got was a big grey box with
Time: and a few other things written in the corner."

Today Trer had already rec'd answers from David Webb, Michael
Zdeb, Larry Hoyle, and Paul Marsh and someone y'all  know and
love at SI (*the* graphics device driver expert) called me to
post the answer.  I'm too late though since Michael, Larry and
Paul already have said exactly what he said....which is that when
you import Encapsulated postscript into Pagemaker, all you see is
a "big grey box" but this is correct as others have said.  When
you print this file it prints just fine, also as others have
said.  I've included the responses below -- great job folks!

***********************************************************************
Mike Zdeb
Encapsulated postscript should work (I've done it with
SAS-to-Word Perfect).  All you will see is a box (same as in WP)
since there's no display image created in the EPS file - it only
contains the commands to drive a PS printer.  Have you tried
printing the document with the 'gray-box?'  It should print
though all you see on the screen is a box.  Some programs (e.g.,
on MACs) include a display image as part of the EPS file - not
SAS.

Also, Pagemaker should also accept a CGM file that you can
produce with SAS - in that case you can see the image on the
screen
***********************************************************************
Larry Hoyle
If you have a PostScript printer the EPS graphic should print
when pulled into Pagemaker (that's what the "Encapsulated" in EPS
means.) EPS files may or may not have a bitmap included in them
which is used when previewing the document on screen. The SAS EPS
drivers do not include the bitmap, so all you see while you are
in Pagemaker is the gray box, with the comments from the EPS file
to help identify the graphic.

If you don't have a PostScript printer using an EPS file is
tougher. There are some commercial software packages which will
do the PostScript interpretation on your PC and then print to a
variety of laser printers.  There is also a freeware package,
which now runs under Windows, which can print PostScript files to
a variety of printers. This package, Ghostscript, is available by
FTP from the usual "mirrors" sites such as wuarchive.wustl.edu
(on /mirrors/msdos/postscript).  I've had good luck using
Ghostscript to print color PostScript to an HP500C.

Another alternative for your Pagemaker problem, if you don't have
a PostScript printer is to use a CGM file. Our Pagemaker 3.0
manual lists CGM as a format you can import. There are different
"flavors" of CGM so you may have to experiment, but since the
Pagemaker manual mentions Lotus Freelance and Harvard Graphics
you might try those first. SAS 6.07 under  AIX has CGM drivers
for both of these packages. Use PROC GDEVICE to find them.

The Pagemaker 3.0 manual also does mention HP-GL, but you must
use a file extension of .PLT on the file. The manual for that
version mentions that there can be some problems with fonts. You
might have to avoid hardware characters (GOPTIONS NOCHARACTERS).
This could make your files huge. Another drawback to using HPGL
with software characters is that the quality of the fonts in your
graphic will suffer.
***********************************************************************
Paul Marsh
sorry that I missed the original query, but there have been
 several replies re how to move SAS/Graph output to Pagemaker.
 all of the answers seemed correct

one salient point to emphasize: it depends on the graphics
 filters that were loaded when Pagemaker was installed.  you must
 specify your needs at installation time (ie, you must look into
 the future).  there are filters for TIFF, PCX, HPGL,
 Encapsulated PostScript, and other graphic file formats. SAS
 supports many of these formats.  my preference is HPGL since it
 is a vector style format.  it is superior to Encapsulated
 PostScript in that you can see your graph on Pagemaker page. the
 following SAS segment is a possible setuP:

GOPTIONS DEV=HP7475a GSFMODE=replace  GSFNAME=GRAFOUT;
FILENAME GRAFOUT "catch-it-here name";

PROC Gsomething or other;

Then you can File-Place  "catch-it-here" into the Pagemaker doco.

***********************************************************************
Larry Hoyle
One circumstance  in which it may be worth using EPS as a
transfer format to other software, even though you can't preview
the graphics on the screen, is were you wish to precisely control
color or shading.  Examples would be with a shaded map, or a
gradient fill background.  SAS allows pretty good control over
color when you are writing to a PostScript device, and the EPS
file carries that through to your final page. The new 600 dpi
(and higher) laser printers should allow for pretty fine shading
distinctions.
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU