[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Landscape Legal (the postscript version)



Chad's idea works well with a changed command (however, it is a PS Level 2
command, so your milage may vary, HPs in PS mode take it fine).  Here's the
first part of my pslegal.str file which changes to legal paper:

% 09-01-98  PAB  (TS-4353)
%                 o Changed comments about GRAPHIC command to ALTER-PRINTER.
% (_EOH_)
% Note: The lines beginning '%PROLOG1' and '%PROLOG2' are required.
%% 2000-02-10 - MCSAN - Legal size paper default
statusdict begin
    <</PageSize [612 1008]>> setpagedevice
end

/server save def   % Save postscript VM stack
/sqdict 200 dict def

I also modified the delivered file to have the same command for standard paper
since it will print on legal if the printer is not reset between jobs.

Thanks Chad!

Buddy.



In method 2, we use an alternate postscript template file, replacing SQR's
default:

Declare-Printer printed_output
 STARTUP-FILE=/bert/bin/postscript_legaltray.str
 FOR-REPORTS=(printed_report)
 TYPE=PS
 POINT-SIZE = {printed_point_size}
 FONT=5
End-Declare ! printer_output


The contents of the postscript_legaltray.str file are:
%!PS-Adobe-1.0
[... revision comments ...]

%% 1999-10-15 Chad Redman - this chooses paper tray 1 (always Legal paper?)
% $Id: postscript_legaltray.str,v 1.1 1999/10/14 17:27:19 cer28 Exp $
statusdict begin
    1 setpapertray
end

[the rest of the file is left alone, so it continues with:]
/server save def   % Save postscript VM stack
[...]


Using the second methods allows us to write SQR programs with the actual
postscript commands abstracted, and so we are using that method. That way,
if we need to change the code, we only need to do it in one place.