× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Request for an RPG example of printing with an overl
  • From: Rob Dixon <rob.dixon@xxxxxxxxxxx>
  • Date: Sat, 26 Aug 2000 09:25:56 +0100
  • Organization: Erros plc

Gary

> Hi Rob,
>
> Thank you very very much.  I will be working on putting this together
> and see how far I can get.  It sounds (from the looks of it) like
> there are a few basics that one has to know and maybe it will all fall
> into place.

It isn't very difficult.  If you need to do a debug, check the value of the 
array
CMD on the CALL 'CMDEXC'  statements and then check to see if the error 
indicator
is on after that statement  has been executed - if so your override did not 
work.

> I'm guessing the sequence is as simple as:

> 1.  Close the printer file.

This implies that you intend to go through the routine multiple times without
ending the program.  As you are only overriding two values, you may not need a
DLTOVR at this point as I suggested.  I was overriding many more values and put
it in to ensure that my next override started with a clean sheet.

2.  Override to select the overlay.

> 3.  Override to select Portrait or Landscape.

Combine these two overrides together

> 4.  Open the printer file.
> 5.  Print.
> 6.  Close the printer file.
> 7.  Override to remove the overlay.
> 8.  Override to select  Landscape for envelopes.

Combine these two overrides together

> 9.  Open the printer file.
> 10.  Print.

If you are doing high volumes, you may have performance problems with constant
opening and closing the printer files.  To overcome these is not so easy as it
means using one printer file for both reports and sending esape codes for
landscape etc. to the printer without the help of the OVRPRTF command.  I
remember that this is why we sent the lanscape code direct as it meant that we
could change from portrait to landscape and change paper drawer in the middle of
a report.

Best wishes

Rob
________________________________________________________

Erros plc

44 (0) 1844 239 339

http://www.erros.co.uk - The AS/400 Neural Database for the Internet

_________________________________________________________


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.