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

RE: [sqr-users] Duplex Printing



Cheers Eric,

I think I'll leave the Config-file, as so many territories use the same
files on our servers.

Regards
Matthew Olliver

-----Original Message-----
From: sqr-users-bounces+matthew.olliver=arvato-systems.co.uk@sqrug.org
[mailto:sqr-users-bounces+matthew.olliver=arvato-systems.co.uk@sqrug.org
] On Behalf Of Ratts, Eric
Sent: 23 April 2009 17:13
To: This list is for discussion about the SQR database reporting
languagefrom Hyperion Solutions.; jirka.vylet@oracle.com
Subject: RE: [sqr-users] Duplex Printing

Matt,

Page 2 needs to be on the back of page 1, right?  And there is an easier
way to set duplex in PostScript.

First - modify your POSTSCRI.STR file (the PostScript config-file) to
include the following:
%%BeginDefaults
<< /Duplex false >> setpagedevice
%%EndDefaults

You want to place these lines before this line in the file:
% Note: The lines beginning '%PROLOG1' and '%PROLOG2' are required.

Remember, this is modifying the file that all PostScript files will use;
therefore, all will default to Simplex.

Next - use the following code:
IF #page-count < 3
   print-direct printer=ps '<< /Duplex true >> setpagedevice'
END-IF

This way, page 1 is on the front and page 2 is on the back of page 1 and
pages 3 and following are defaulted to simplex.

If you don't want to modify your POSTSCRI.STR file, you only need to use
the setpagedevice command twice - once to set duplex, once to set
simplex.

Hope that helps,
~Eric


-----Original Message-----
From: sqr-users-bounces+eric.ratts=gwl.com@sqrug.org
[mailto:sqr-users-bounces+eric.ratts=gwl.com@sqrug.org] On Behalf Of
matthew.olliver@arvato-systems.co.uk
Sent: Thursday, April 23, 2009 9:15 AM
To: jirka.vylet@oracle.com; sqr-users@sqrug.org
Subject: RE: [sqr-users] Duplex Printing

Just to check, will the following be able to complete the following
situation:

1st Piece of Paper Duplex
2nd Piece Simplex
3rd piece simplex....etc...

I am going to be compiling the code by the end of the day hopefully, and
wonder whether this is okay.

IF #page-count = 1
    USE-PRINTER-TYPE postscript
    PRINT-DIRECT printer=ps 'statusdict begin'
    PRINT-DIRECT printer=ps 'true setduplexmode'
    PRINT-DIRECT printer=ps 'end'
ELSE
    USE-PRINTER-TYPE postscript
    PRINT-DIRECT printer=ps 'statusdict begin'
    PRINT-DIRECT printer=ps 'false setduplexmode'
    PRINT-DIRECT printer=ps 'end'
END-IF


Regards
Matthew Olliver





-----Original Message-----
From: Jirka Vylet [mailto:jirka.vylet@oracle.com]
Sent: 17 April 2009 16:59
To: Olliver, Matthew, NMM-U; sqr-users@sqrug.org
Subject: RE: [sqr-users] Duplex Printing

Here is the sample SQR code for PostScript:
...
begin-program
  do main
end-program
!
begin-procedure main
use-printer-type postscript
print-direct printer=ps 'statusdict begin'
print-direct printer=ps 'true setduplexmode'
print-direct printer=ps 'end'
...
end-procedure
...
Here is the sample SQR code for HPLaserJet:
...
begin-program
      use-printer-type hplaserjet
      encode '<27>&l1S' into $duplex
      print-direct $duplex
      do main
      ...       
end-program
... 

-----Original Message-----
From: matthew.olliver@arvato-systems.co.uk
[mailto:matthew.olliver@arvato-systems.co.uk]
Sent: Thursday, April 16, 2009 3:11 AM
To: sqr-users@sqrug.org
Subject: [sqr-users] Duplex Printing

I have a document which needs altering; it currently prints simplex with
one invoice on each page. Our customer now requires it to have the terms
and conditions on the back of every page.=20=20

What is the quickest and easiest way to do this?=20=20 Is it esc
codes?=20 Or=20 Is it easier to do something each time NEW-PAGE is
called.

Regards
Matthew Olliver






_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users


The information contained in this message and any accompanying
attachments may contain privileged, private and/or confidential
information protected by state and federal law.  Penalties may be
assessed for unauthorized use and/or disclosure.  This message and any
attachments are intended for the designated recipient only.  If you have
received this information in error, please notify the sender immediately
and return or destroy the information.

This e-mail transmission and any attachments are believed to have been
sent free of any virus or other defect that might affect any computer
system into which it is received and opened. It is, however, the
recipient's responsibility to ensure that the e-mail transmission and
any attachments are virus free, and the sender accepts no responsibility
for any damage that may in any way arise from their use.

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users