Article View: comp.apps.spreadsheets
Article #167Wingz
From: Bo Kahler
Date: Mon, 28 Sep 1992 08:32
Date: Mon, 28 Sep 1992 08:32
64 lines
2331 bytes
2331 bytes
I have tried to reply directly but the address seems "unknown" so I
will use the list. This was my reply:
Shauna,
In the more current version 1.1b of wingz printing postscript to a
file is an option in the print menu. However, as we (like you) are
running an earlier version, we have had to 'hack' our own solution.
In your printer.info file on the second line you specify the LpCommand.
Usually this is lpr or lp. In our case we have modified this to read:
LpCommand "wingzlpr"
where wingzlpr is a script (which is included below). In addition we
have added a "pseudo"printer in this file. The entry reads:
Postscript B&W Printer Name "Print to File"
Total Fonts 35
... (here comes the font info which I have deleted)
As a result, "Print to File" will pop up as a valid printername.
Now the wingzlpr script will reckognize this name and use xprompt to
prompt the user for a file name to put the postscript on. You may chose
another (like the new xtpanel, the filenominator utility shipped with
the aXe editor or similar).
If you have any further questions - please call on me again. We run SUN
4.1 and hp-ux 8.01 so if you want executables that is what I can provide.
--
Regards,
Bo Kahler E-mail: kahler@delab.sintef.no
SINTEF DELAB Phone: +47-7-593175
N-7034 Trondheim Fax: +47-7-532586
Norway
#! /bin/sh
#echo $*
if [ $2 = to -a $3 = File ]
then
reply=`xprompt -re -p "Enter postscript filename"`
# echo "Reply is: $reply"
if [ X"$reply" = X ]
then
echo 'Printing cancelled'
exit 1
fi
mv $5 $reply
else
# echo "printing: lpr $*"
lpr $*
fi
--
Regards,
Bo Kahler E-mail: kahler@delab.sintef.no
SINTEF DELAB Phone: +47-7-593175
N-7034 Trondheim Fax: +47-7-532586
Norway
Technical Details
Message-ID:
<1992Sep28.083213.23564@ugle.unit.no>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!ugle.unit.no!kahlerShow Full Headers
Complete Article Headers
Newsgroups: comp.apps.spreadsheets Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!ugle.unit.no!kahler From: kahler@delab.sintef.no (Bo Kahler) Subject: Wingz Message-ID: <1992Sep28.083213.23564@ugle.unit.no> Sender: news@ugle.unit.no (NetNews Administrator) Reply-To: Bo.Kahler@delab.sintef.no Organization: SINTEF DELAB, Trondheim, Norway. Date: Mon, 28 Sep 92 08:32:13 GMT Lines: 64