🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.apps.spreadsheets
1 messages
1 total messages Started by Bo Kahler Mon, 28 Sep 1992 08:32
Wingz
#167
Author: Bo Kahler
Date: Mon, 28 Sep 1992 08:32
64 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads